/* Externalized from privacy/index.html for CSP. */
:root {
            --panel: rgba(15, 23, 42, 0.92);
            --text: #e5e7eb;
            --muted: #9ca3af;
            --accent: #2563eb;
            --top-nav-h: calc(56px + env(safe-area-inset-top));
            --bottom-nav-h: 56px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background: #020617;
            color: var(--text);
            font-family: var(--seen-font);
            min-height: 100vh;
        }

        .privacy {
            max-width: 960px;
            margin: 0 auto;
            padding: 32px 20px 120px;
        }

        body.auth-nav-only .top-nav,
        body.auth-nav-only .bottom-nav {
            display: none !important;
        }

        body.auth-nav-only.is-authenticated .top-nav {
            display: flex !important;
        }

        .privacy-card {
            background: var(--panel);
            border: 1px solid rgba(148, 163, 184, 0.28);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
        }

        .privacy h1 {
            margin: 0 0 6px;
            font-size: 28px;
            letter-spacing: -0.02em;
        }

        .privacy h2 {
            margin: 22px 0 8px;
            font-size: 16px;
            letter-spacing: 0.01em;
        }

        .privacy p,
        .privacy li {
            color: rgba(229, 231, 235, 0.92);
            line-height: 1.6;
            font-size: 14px;
        }

        .privacy a {
            color: #ffffff;
            text-decoration-color: rgba(255, 255, 255, 0.78);
        }

        .privacy a:hover,
        .privacy a:focus-visible {
            color: #ffffff;
            text-decoration-color: #ffffff;
        }

        .privacy ul {
            margin: 8px 0 0;
            padding-left: 18px;
        }

        .privacy .muted {
            color: var(--muted);
        }

        .privacy .pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.18);
            border: 1px solid rgba(37, 99, 235, 0.35);
            color: #dbeafe;
            font-weight: 700;
            font-size: 12px;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .privacy [id] {
            scroll-margin-top: calc(var(--top-nav-h) + 16px);
        }

        .privacy-grid {
            display: grid;
            gap: 16px;
        }

        .privacy-callout {
            padding: 14px 16px;
            border-radius: 12px;
            background: rgba(30, 41, 59, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.25);
            font-size: 13px;
            color: var(--muted);
        }

        .legal-footer {
            margin-top: 16px;
            text-align: center;
            color: rgba(156, 163, 175, 0.95);
            font-size: 12px;
            line-height: 1.45;
        }

        .legal-footer p {
            margin: 0;
        }

        /* -----------------------------
           Mobile: split nav (top vs bottom)
        ------------------------------*/
        .bottom-nav {
            display: none;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
            padding: 6px 10px calc(env(safe-area-inset-bottom) + 6px);
            background: linear-gradient(to top,
                    rgba(15, 23, 42, 0.98),
                    rgba(15, 23, 42, 0.80));
            border-top: 1px solid rgba(148, 163, 184, 0.25);
            backdrop-filter: blur(10px);
            z-index: 60;
            flex-direction: column;
            justify-content: center;
            gap: 4px;
        }

        .bottom-nav-row {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: space-around;
        }

        .bn-link {
            flex: 1 1 0;
            text-align: center;
            padding: 10px 12px;
            border-radius: 999px;
            text-decoration: none;
            color: rgba(229, 231, 235, 0.92);
            font-weight: 800;
            font-size: 13px;
            border: 1px solid transparent;
            background: rgba(148, 163, 184, 0.10);
        }

        .bn-link:hover {
            background: rgba(148, 163, 184, 0.18);
        }

        .bottom-nav-status {
            text-align: center;
            color: rgba(156, 163, 175, 0.95);
            font-size: 12px;
            font-weight: 750;
            text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
            line-height: 1.1;
            min-height: 14px;
        }

        @media (max-width: 720px) {
            :root {
                --bottom-nav-h: 64px;
                --mobile-bottom-gap: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 24px);
            }

            html,
            body {
                scroll-padding-bottom: var(--mobile-bottom-gap);
            }

            body {
                padding-bottom: var(--mobile-bottom-gap);
            }

            .nav-mobile-hide {
                display: none !important;
            }

            .bottom-nav {
                display: flex;
            }

            body.auth-nav-only.is-authenticated .bottom-nav {
                display: flex !important;
            }

            .bn-link {
                padding: 8px 10px;
                font-size: 12px;
            }

            .bottom-nav-status {
                font-size: 11px;
                min-height: 11px;
            }
        }
