        /* ── Base variables (dark) ── */
        :root {
            --bg-grad: radial-gradient(circle at top left, rgba(78,109,255,0.18), transparent 28%),
                       radial-gradient(circle at bottom right, rgba(108,63,255,0.12), transparent 24%),
                       linear-gradient(180deg,#050815 0%,#04070d 45%,#07111f 100%);
            --text:    #edf2ff;
            --muted:   #9ab2ff;
            --accent:  #5f97ff;
            --surface: rgba(16,24,45,0.95);
            --border:  rgba(95,151,255,0.16);
            --nav-bg:  rgba(3,8,18,0.9);
            --nav-border: rgba(68,155,255,0.18);
            --dot-color: rgba(255,255,255,0.04);
            --footer-color: rgba(237,242,255,0.64);
            --card-bg: rgba(255,255,255,0.04);
            --card-border: rgba(255,255,255,0.08);
            --heading: #edf2ff;
            --body-text: rgba(237,242,255,0.82);
            --tag-bg:  rgba(95,151,255,0.12);
            --tag-color: #9ab2ff;
        }

        body.light-theme {
            --bg-grad: radial-gradient(circle at top left,rgba(96,150,255,0.08),transparent 20%),
                       radial-gradient(circle at bottom right,rgba(138,72,255,0.05),transparent 16%),
                       linear-gradient(180deg,#f8fbff 0%,#eef2ff 55%,#f8f9ff 100%);
            --text:    #111827;
            --muted:   #2563eb;
            --accent:  #2563eb;
            --surface: rgba(255,255,255,0.95);
            --border:  rgba(148,163,184,0.18);
            --nav-bg:  rgba(255,255,255,0.94);
            --nav-border: rgba(148,163,184,0.16);
            --dot-color: rgba(17,24,39,0.04);
            --footer-color: rgba(17,24,39,0.72);
            --card-bg: rgba(255,255,255,0.92);
            --card-border: rgba(148,163,184,0.18);
            --heading: #111827;
            --body-text: rgba(17,24,39,0.78);
            --tag-bg:  rgba(15,23,42,0.06);
            --tag-color: #2563eb;
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            font-family: 'Inter', Arial, sans-serif;
            background: var(--bg-grad);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
            transition: background 0.35s ease, color 0.35s ease;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
            background-size: 46px 46px;
            pointer-events: none;
            opacity: 0.3;
            transition: opacity 0.35s ease;
            z-index: 0;
        }

        body.light-theme::before { opacity: 0.08; }

        /* ── Header / Nav ── */
        .site-header {
            position: fixed;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            width: min(1120px, calc(100% - 36px));
            padding: 18px 24px;
            z-index: 2000;
            background: var(--nav-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--nav-border);
            border-radius: 24px;
            box-shadow: 0 24px 80px rgba(0,0,0,0.35);
            transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
        }

        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .brand {
            font-size: 1.35rem;
            font-weight: 800;
            letter-spacing: -0.08em;
            color: #76b6ff;
            text-transform: uppercase;
            text-decoration: none;
            text-shadow: 0 0 20px rgba(110,180,255,0.25);
            transition: color 0.3s ease;
        }
        body.light-theme .brand { color: #111827; text-shadow: none; }
        .brand span { color: #58a1ff; }
        body.light-theme .brand span { color: #2563eb; }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .back-link {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--muted);
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 12px;
            border: 1px solid var(--border);
            background: rgba(255,255,255,0.04);
            transition: all 0.25s ease;
        }
        .back-link:hover {
            background: rgba(95,151,255,0.12);
            color: var(--accent);
            transform: translateY(-1px);
        }
        body.light-theme .back-link {
            background: rgba(15,23,42,0.06);
            color: #374151;
        }
        body.light-theme .back-link:hover {
            background: rgba(95,151,255,0.12);
            color: #2563eb;
        }

        .theme-toggle {
            min-width: 40px;
            height: 44px;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.14);
            background: rgba(255,255,255,0.08);
            color: var(--text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 0 16px;
            cursor: pointer;
            font-family: inherit;
            transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
        }
        .theme-toggle:hover {
            background: rgba(255,255,255,0.16);
            transform: translateY(-1px);
        }
        body.light-theme .theme-toggle {
            background: rgba(17,24,39,0.08);
            border-color: rgba(148,163,184,0.18);
            color: #111827;
        }
        .theme-icon { font-size: 1.1rem; }
        .theme-label {
            font-size: 0.88rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-weight: 700;
        }

        /* ── Page content ── */
        .page-wrap {
            position: relative;
            z-index: 1;
            max-width: 860px;
            margin: 0 auto;
            padding: 140px 24px 80px;
        }

        .page-eyebrow {
            display: inline-block;
            font-size: 0.88rem;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 16px;
            transition: color 0.3s ease;
        }

        .page-title {
            font-size: clamp(2.2rem, 4.5vw, 3.6rem);
            font-weight: 800;
            line-height: 1.08;
            margin: 0 0 12px;
            color: var(--heading);
            transition: color 0.3s ease;
        }

        .page-title span {
            background: linear-gradient(135deg, #5f97ff, #8a48ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .page-meta {
            font-size: 0.9rem;
            color: var(--muted);
            margin-bottom: 48px;
            transition: color 0.3s ease;
        }

        .toc-nav {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 28px 32px;
            margin-bottom: 56px;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .toc-nav h2 {
            font-size: 0.85rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--muted);
            margin: 0 0 16px;
        }

        .toc-nav ol {
            margin: 0;
            padding-left: 20px;
            display: grid;
            gap: 8px;
        }

        .toc-nav li a {
            color: var(--accent);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: opacity 0.2s ease;
        }
        .toc-nav li a:hover { opacity: 0.75; }

        .legal-section {
            margin-bottom: 52px;
            scroll-margin-top: 100px;
        }

        .legal-section h2 {
            font-size: 1.45rem;
            font-weight: 700;
            color: var(--heading);
            margin: 0 0 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: color 0.3s ease;
        }

        .section-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(95,151,255,0.22), rgba(138,72,255,0.22));
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--accent);
            flex-shrink: 0;
            transition: color 0.3s ease;
        }

        .legal-section p,
        .legal-section li {
            font-size: 0.97rem;
            line-height: 1.78;
            color: var(--body-text);
            transition: color 0.3s ease;
        }

        .legal-section ul,
        .legal-section ol {
            padding-left: 20px;
        }

        .legal-section ul li,
        .legal-section ol li {
            margin-bottom: 8px;
        }

        .highlight-box {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-left: 3px solid var(--accent);
            border-radius: 16px;
            padding: 20px 24px;
            margin: 20px 0;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .highlight-box p { margin: 0; }

        .tag-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }

        .tag {
            background: var(--tag-bg);
            color: var(--tag-color);
            border-radius: 999px;
            padding: 5px 14px;
            font-size: 0.82rem;
            font-weight: 600;
            transition: background 0.3s ease, color 0.3s ease;
        }

        .divider {
            height: 1px;
            background: var(--card-border);
            margin: 56px 0;
            transition: background 0.3s ease;
        }

        /* ── Footer ── */
        .footer {
            position: relative;
            z-index: 1;
            margin-top: 48px;
            padding: 40px 24px 24px;
            border-top: 1px solid rgba(148,163,184,0.16);
            background: rgba(3,7,15,0.62);
            transition: background 0.3s ease, border-color 0.3s ease;
        }
        body.light-theme .footer {
            background: rgba(255,255,255,0.95);
            border-top: 1px solid rgba(148,163,184,0.18);
        }

        .footer-inner {
            max-width: 1112px;
            margin: 0 auto;
            color: var(--footer-color);
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .footer-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 28px;
            padding-bottom: 36px;
        }

        .footer-identity p,
        .footer-bottom p { margin: 0; }

        .footer-name {
            display: inline-block;
            margin-bottom: 9px;
            color: var(--text);
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            text-decoration: none;
        }

        .footer-identity p span { color: #21cbe0; }

        .footer-social-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 12px 22px;
            padding-top: 2px;
        }

        .footer-social-links a,
        .footer-legal-links a {
            color: #a9c4ff;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-social-links a:hover,
        .footer-legal-links a:hover { color: #21cbe0; }

        .footer-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px 24px;
            padding-top: 20px;
            border-top: 1px solid rgba(148,163,184,0.16);
        }

        .footer-legal-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 22px;
        }

        .footer-bottom-actions {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .footer-back-to-top {
            display: grid;
            width: 44px;
            height: 44px;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(95,151,255,0.28);
            border-radius: 50%;
            color: #a9c4ff;
            font-size: 1.35rem;
            line-height: 1;
            text-decoration: none;
            transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        }

        .footer-back-to-top:hover {
            color: #21cbe0;
            border-color: rgba(33,203,224,0.55);
            background: rgba(33,203,224,0.08);
            transform: translateY(-2px);
        }

        .footer a:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 4px;
        }

        @media (max-width: 820px) {
            .footer-top { flex-direction: column; gap: 22px; }
            .footer-social-links { justify-content: flex-start; }
        }

        @media (max-width: 640px) {
            .footer-bottom { align-items: flex-start; flex-direction: column; }
            .footer-social-links { gap: 12px 14px; }
            .footer-bottom-actions { width: 100%; justify-content: space-between; gap: 16px; }
            .footer-legal-links { gap: 10px 16px; }
        }

        @media (max-width: 640px) {
            .page-wrap { padding-top: 120px; }
            .toc-nav { padding: 20px; }
            .nav-right .theme-label { display: none; }
        }
