/* ==========================================================
   Legal document pages (privacy, terms, disclosures)
   Tokens mirror index.html / .claude/contracts/design-system.md
   ========================================================== */

:root {
    --accent:        #2563EB;
    --accent-dark:   #1E40AF;

    --bg:            #FBF9F7;
    --surface:       #F8F9FA;
    --border:        rgba(60,45,30,0.10);
    --border-strong: rgba(60,45,30,0.18);

    --text:          #1B1C1B;
    --text-secondary:#4A4540;
    --text-muted:    #6E6560;

    --r-xs:   8px;
    --r-sm:  12px;
    --r-md:  16px;
    --r-lg:  20px;
    --r-pill:26px;

    --s-screen: 24px;
    --s-card:   16px;
    --s-pad:    20px;

    --d-fast: 200ms;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    font-family: -apple-system, 'SF Pro Text', Inter, system-ui, sans-serif;
    font-size: 16px;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: -apple-system, 'SF Pro Display', Inter, system-ui, sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-weight: 600; letter-spacing: -0.028em; }
h2 { font-weight: 700; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translate(-50%, -200%);
    background: var(--accent);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--r-xs);
    font-weight: 700;
    z-index: 200;
    transition: transform var(--d-fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ----------------------------- Header ----------------------------- */
header {
    position: sticky;
    top: 0;
    background-color: rgba(251, 249, 247, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px var(--s-screen);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-card);
}

/* Matches .brand in website/index.html exactly: 700, 18px, 11px gap.
   These were 800 / 1.2rem / 10px, so the wordmark was heavier and wider set
   than the same wordmark one click away. */
.logo {
    font-family: -apple-system, 'SF Pro Display', Inter, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 11px;
    letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }

/* Matches .brand .mark in website/index.html exactly. It diverged on FIVE counts:
   34px not 30px, an 8px radius not 9px, a LOCAL 140deg blue-to-navy ramp instead of
   the brand gradient, no shadow, and the visible one: the letter was painted in body
   ink (#1B1C1B) on that navy fill, measuring 3.31:1 at the light end and 1.96:1 at
   the dark end. --grad now comes from assets/brand.css, which is generated from
   assets/brand-ramp.json (N210). Do not reintroduce a local ramp here. */
.logo-mark {
    width: 30px;
    height: 30px;
    background: var(--grad);
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 6px 18px -6px rgba(0,0,0,.18);
}

.btn {
    font-family: -apple-system, 'SF Pro Display', Inter, system-ui, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    min-height: 44px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--d-fast) var(--ease),
                color var(--d-fast) var(--ease);
}
.btn:hover { text-decoration: none; }

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }

/* --------------------------- Document ---------------------------- */
.doc {
    max-width: 860px;
    margin: 0 auto;
    padding-inline: var(--s-screen);
}

main .doc { padding-block: 56px 72px; }

.doc-kicker {
    font-family: -apple-system, 'SF Pro Display', Inter, system-ui, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.doc h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 14px;
}

.doc-intro {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 46ch;
}

.doc-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

/* Table of contents */
.doc-toc {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-pad);
    margin: 32px 0 8px;
}

.doc-toc h2 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.doc-toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px 24px;
}

.doc-toc li { margin: 0; }

.doc-toc a {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
}
.doc-toc a:hover { color: var(--accent); text-decoration: none; }

/* Sections */
.doc section {
    padding-top: 40px;
    scroll-margin-top: 84px;
}

.doc section h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.doc section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 26px;
    margin-bottom: 12px;
}

.doc section p {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.doc section ul {
    list-style: none;
    margin-bottom: 14px;
}

.doc section li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    color: var(--text-secondary);
}

.doc section li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* Callout used on the disclosures page */
.callout {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-sm);
    padding: var(--s-pad);
    margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ----------------------------- Footer ----------------------------- */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: 32px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

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

@media (max-width: 640px) {
    main .doc { padding-block: 36px 52px; }
    .doc-toc ul { grid-template-columns: 1fr; }
}

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