/* Shared styling for the static policy document pages (terms/, privacy/, dmca/,
 * safety/, services/profiles/terms/, account/delete/). These pages coexist with
 * the client-side app at / — they are plain documents, direct-linkable and
 * readable without WASM. Dark by default (matching the app), light via
 * prefers-color-scheme. */

:root {
    color-scheme: dark light;
    --bg: #1b1d21;
    --text: #e6e6e6;
    --muted: #9a9a9a;
    --accent: #7ed669;
    --link: #2f8eee;
    --rule: #33363c;
    --code-bg: #24262b;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #ffffff;
        --text: #1f2328;
        --muted: #6a6f76;
        --rule: #d8dbe0;
        --code-bg: #f2f3f5;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--rule);
}

header a {
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

header a .green { color: var(--accent); }

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 20px 48px;
    overflow-wrap: break-word;
}

main h1 { font-size: 28px; line-height: 1.3; }
main h2 { margin-top: 2em; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
main h3 { margin-top: 1.5em; }

main a { color: var(--link); }

main pre {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 12px 16px;
    overflow-x: auto;
}

main code { font-family: ui-monospace, monospace; font-size: 0.95em; }

main blockquote {
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid var(--rule);
    color: var(--muted);
}

footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px 32px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 14px;
}

footer a { color: var(--muted); }
footer .dot { padding: 0 6px; }
