/*
 * Shared styling for the public legal document site.
 *
 * Served as a FILE rather than inlined in a <style> block on purpose: the API
 * sets a strict CSP with `styleSrc: 'self'` (fastify/app.ts), so an inline block
 * would be blocked in the browser. Keeping the CSS external means the pages
 * render correctly without relaxing the policy with 'unsafe-inline' — which
 * would weaken it for every other route on this origin too.
 */

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --surface: #f5f5f7;
    --border: #e3e3e8;
    --text: #16161a;
    --muted: #5c5c68;
    --accent: #b3003c;
    --accent-surface: #fdf0f4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f12;
        --surface: #1a1a1f;
        --border: #2c2c34;
        --text: #f2f2f5;
        --muted: #a0a0ae;
        --accent: #ff6c99;
        --accent-surface: #24141b;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }

header { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}

h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 40px 0 12px; letter-spacing: -.01em; }
h3 { font-size: 16px; margin: 24px 0 8px; }

.lede { font-size: 17px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.tight { margin-top: 0; }
.flush { margin-bottom: 0; }

.callout {
    background: var(--accent-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 28px 0;
}
.callout h3 { margin-top: 0; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }

ol.steps { padding-left: 20px; }
ol.steps li { margin-bottom: 10px; }

/* Wide content scrolls inside its own container so the page body never does. */
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
    font-weight: 600;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
}

a { color: var(--accent); }

code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 5px;
    font-size: 14px;
}

/* Index page document cards. */
ul.docs { list-style: none; padding: 0; margin: 0; }
ul.docs li + li { margin-top: 12px; }
a.doc {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color .15s ease;
}
a.doc:hover { border-color: var(--accent); }
a.doc strong { display: block; font-size: 17px; margin-bottom: 4px; color: var(--accent); }
a.doc span { color: var(--muted); font-size: 15px; }

footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
