:root {
            --teal: #00B2A9;
            --teal-d: #00716C;
            --teal-br: #11C2B9;   /* the accent, lifted for navy plates */
            --teal-ink: #00716C;
            --teal-l: #DBF5F4;
            --teal-tint: rgba(0, 178, 169, .1);
            --navy: #243A72;
            --ink: #0B1220;
            --slate: #4B5563;
            --mist: #F6F8FA;
            --line: #E5E9F0;
            --line-2: #EEF1F6;
            --white: #fff;
            --sh: 0 2px 10px rgba(36, 58, 114, .10);
            --sh-2: 0 2px 10px rgba(36, 58, 114, .10), 0 16px 40px -14px rgba(36, 58, 114, .26);
            --sh-3: 0 2px 10px rgba(36, 58, 114, .10), 0 24px 60px -18px rgba(36, 58, 114, .34);
            --d: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
            --b: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
            --r: 16px;
            --gut: clamp(20px, 4vw, 40px);
            --ease-out: cubic-bezier(.23, 1, .32, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 104px;
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--b);
            color: var(--slate);
            background:
                radial-gradient(880px 620px at 88% 2%,   rgba(0, 178, 169, .16), transparent 62%),
                radial-gradient(840px 600px at 4% 14%,   rgba(124, 107, 240, .16), transparent 60%),
                radial-gradient(920px 720px at 52% 100%, rgba(201, 196, 245, .24), transparent 66%),
                linear-gradient(180deg, #FFFFFF 0%, #F7F8FE 46%, #F0F1FB 100%);
            background-attachment: fixed;
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
            overflow-x: clip;
        }

        img, svg { display: block; max-width: 100%; }

        a { color: inherit; text-decoration: none; }

        ::selection { background: var(--teal-tint); color: var(--navy); }

        :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

        .lw { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

        h1, h2, h3, h4 {
            font-family: var(--d);
            color: var(--navy);
            font-weight: 700;
            letter-spacing: -.02em;
            line-height: 1.12;
            text-wrap: balance;
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 3.8rem);
            font-weight: 900;
            line-height: 1.04;
            letter-spacing: -.035em;
        }

        h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }

        h3 { font-size: 1.25rem; }

        .it { color: #A78BFA; font-weight: 900; }

        .eyebrow {
            font-size: .73rem;
            font-weight: 700;
            letter-spacing: .26em;
            text-transform: uppercase;
            color: var(--teal);
        }

        /* -- LEGAL HERO (dark) -- */
        .legal-hero {
            position: relative;
            /* the header is sticky, so it takes 72px of flow at the very top and
               the light page background showed through it -- white nav on white.
               The hero starts under the header instead, the way the home hero does,
               and pays the height back as padding. */
            margin-top: -72px;
            padding-top: calc(clamp(52px, 6.5vw, 88px) + 72px);
            background:
                radial-gradient(880px 620px at 88% -8%,  rgba(0, 178, 169, .16), transparent 62%),
                radial-gradient(840px 600px at 4% 10%,   rgba(124, 107, 240, .22), transparent 60%),
                radial-gradient(920px 720px at 52% 112%, rgba(91, 63, 168, .24),  transparent 66%),
                linear-gradient(180deg, #0B1220 0%, #101A2E 46%, #0B1220 100%);
            padding-bottom: clamp(44px, 5.5vw, 68px);
            overflow: hidden;
        }

        .legal-hero::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(700px 400px at 80% 18%, rgba(167, 139, 250, .12), transparent 66%);
            pointer-events: none;
        }

        .legal-hero .w { position: relative; z-index: 2; }

        .legal-hero h1 { color: #fff; margin-top: 8px; margin-bottom: 16px; }

        .breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: .84rem;
            font-weight: 500;
            color: rgba(255, 255, 255, .6);
            margin-bottom: 18px;
        }

        .breadcrumb a { color: var(--teal); transition: color .18s ease; }

        .breadcrumb a:hover { color: #fff; }

        .breadcrumb span { opacity: .45; }

        .legal-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

        .meta-pill {
            background: rgba(255, 255, 255, .06);
            border: 1px solid rgba(255, 255, 255, .14);
            padding: 7px 16px;
            border-radius: 999px;
            font-size: .84rem;
            font-weight: 500;
            color: rgba(255, 255, 255, .78);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .meta-pill b { color: var(--teal); font-weight: 700; }

        /* -- PAGE BODY & TOC -- */
        .page-body {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: clamp(40px, 5vw, 72px);
            padding-block: clamp(48px, 6vw, 88px);
            align-items: start;
        }

        @media (max-width: 900px) {
            .page-body { grid-template-columns: 1fr; }

            .toc-aside { display: none; }
        }

        .toc-aside {
            position: sticky;
            top: 96px;
            background: var(--white);
            border-radius: var(--r);
            padding: 24px 20px;
            box-shadow: var(--sh-2);
            max-height: calc(100vh - 126px);
            overflow-y: auto;
        }

        .toc-aside::-webkit-scrollbar { width: 4px; }

        .toc-aside::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

        .toc-label {
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: .22em;
            text-transform: uppercase;
            color: var(--slate);
            margin-bottom: 16px;
            padding-left: 12px;
        }

        .toc-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }

        .toc-list a {
            font-size: .88rem;
            font-weight: 500;
            color: var(--slate);
            display: block;
            padding: 8px 12px;
            border-radius: 8px;
            transition: color .18s var(--ease-out), background .18s var(--ease-out);
            line-height: 1.4;
        }

        .toc-list a:hover { color: var(--navy); background: var(--mist); }

        .toc-list a.active { color: var(--teal-ink); background: var(--teal-l); font-weight: 700; }

        /* -- DOCUMENT CONTENT -- */
        .doc-content {
            min-width: 0;
            background: var(--white);
            border-radius: var(--r);
            box-shadow: var(--sh-2);
            padding: clamp(28px, 4vw, 52px);
        }

        .doc-section {
            padding-bottom: 44px;
            margin-bottom: 44px;
            border-bottom: 1px solid var(--line-2);
            scroll-margin-top: 104px;
        }

        .doc-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

        .section-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .12em;
            background: var(--teal-l);
            color: var(--teal-ink);
            padding: 4px 11px;
            border-radius: 999px;
            margin-bottom: 12px;
        }

        .doc-section h2 {
            font-size: clamp(1.4rem, 2.5vw, 1.85rem);
            color: var(--navy);
            margin-bottom: 18px;
            font-weight: 700;
            letter-spacing: -.025em;
            line-height: 1.25;
        }

        .doc-section h3 {
            font-size: 1.14rem;
            color: var(--navy);
            margin-top: 28px;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .doc-section p {
            color: var(--slate);
            font-size: 1.02rem;
            line-height: 1.75;
            margin-bottom: 16px;
            max-width: 68ch;
        }

        .doc-section p:last-child { margin-bottom: 0; }

        .doc-section strong { color: var(--navy); font-weight: 700; }

        .doc-section ul,
        .doc-section ol {
            list-style: none;
            padding-left: 0;
            margin: 18px 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-width: 68ch;
        }

        .doc-section ul li {
            position: relative;
            padding-left: 26px;
            color: var(--slate);
            font-size: 1.02rem;
            line-height: 1.65;
        }

        .doc-section ul li::before {
            content: "";
            position: absolute;
            left: 4px;
            top: 10px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--teal);
        }

        .doc-section a {
            color: var(--teal-ink);
            font-weight: 700;
            border-bottom: 1px solid rgba(0, 178, 169, .4);
            transition: color .15s ease, border-color .15s ease;
        }

        .doc-section a:hover { color: var(--navy); border-bottom-color: var(--navy); }

        .callout {
            background: var(--mist);
            border-radius: 12px;
            padding: 22px 26px;
            margin: 24px 0;
            font-size: .98rem;
            color: var(--navy);
            max-width: 68ch;
            box-shadow: inset 0 0 0 1px var(--line), var(--sh);
            line-height: 1.7;
        }

        .callout strong {
            color: var(--teal-ink);
            font-weight: 700;
            display: block;
            margin-bottom: 4px;
        }

        .tag-chip {
            display: inline-block;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            background: var(--teal-l);
            color: var(--teal-ink);
            padding: 3px 10px;
            border-radius: 999px;
            margin-left: 6px;
            vertical-align: middle;
        }

        .contact-block {
            background: linear-gradient(150deg, #243A72 0%, #1B2C56 100%);
            border-radius: var(--r);
            padding: 28px 32px;
            margin-top: 28px;
            max-width: 520px;
            box-shadow: var(--sh-2);
            transition: transform .22s var(--ease-out);
        }

        .contact-block:hover { transform: translateY(-3px); }

        .contact-block h3 { font-size: 1.25rem; color: #fff; margin: 0 0 14px; }

        .contact-block p { font-size: .96rem; margin-bottom: 8px; color: rgba(255, 255, 255, .72); }

        .contact-block a { color: var(--teal-br); font-weight: 700; border-bottom: none; }

        .contact-block a:hover { color: #fff; }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }

            *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
        }
