/* =========================================================================
   BeApp public site shared stylesheet
   Used by /privacy.html, /terms.html, /account-deletion.html
   Mobile-first dark aesthetic, matches landing.html palette.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
    --bg: #06060a;
    --surface: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #ffffff;
    --text-muted: #a8aab6;
    --text-soft: #6b6e7a;
    --brand: #8b5cf6;
    --brand-link: #a78bfa;
    --gradient-rainbow: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #22c55e, #3b82f6);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    position: relative;
}

/* Decorative background — soft gradient orbs */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 15% 0%, rgba(59,130,246,0.08), transparent 65%),
        radial-gradient(ellipse 70% 50% at 85% 100%, rgba(139,92,246,0.07), transparent 65%);
    pointer-events: none;
}

/* === Navbar === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
    background: rgba(6,6,10,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo span { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.nav-back:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
}

/* === Article === */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.article-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.article-title .gradient-text {
    background: var(--gradient-rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.article p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.article ul,
.article ol {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.article li::marker { color: var(--brand-link); }

.article strong { color: var(--text); font-weight: 600; }
.article em { color: var(--text); font-style: italic; }

.article a {
    color: var(--brand-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.article a:hover { text-decoration-thickness: 2px; }

.article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

.article blockquote {
    border-left: 3px solid var(--brand);
    padding: 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text);
    background: var(--surface);
    border-radius: 0 8px 8px 0;
}

/* === Steps for account deletion === */
.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.steps > li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.steps > li small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === Callout === */
.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
}

.callout--info {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.06);
}

.callout strong { color: var(--text); }

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .site-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.site-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.site-footer-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
