/* Shared styling for the legal pages. Mirrors the tokens in index.html so
   these read as part of the same site, but they are plain documents — no
   marketing furniture, just readable prose at a comfortable measure. */

:root {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-hover: #1c1c1f;
    --border: #27272a;
    --border-light: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0a0a0b; }

nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 820px; margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em;
    color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent); }
.back-link {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.back-link:hover { color: var(--accent); }

main { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }

.doc-eyebrow {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--accent);
}
h1 {
    font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 12px;
    text-wrap: balance;
}
.updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }

h2 {
    font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
    margin: 44px 0 14px; padding-top: 28px;
    border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: none; padding-top: 0; }

h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }

p { color: var(--text-secondary); margin-bottom: 14px; }
main a { color: var(--accent); }

ul { margin: 0 0 16px 22px; color: var(--text-secondary); }
li { margin-bottom: 8px; }

strong { color: var(--text); font-weight: 600; }

.callout {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius); padding: 20px 22px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .ct {
    font-weight: 700; color: var(--text);
    font-size: 0.95rem; margin-bottom: 6px;
}

/* Marks text the owner must replace before publishing. */
.todo {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 5px; padding: 1px 7px;
    color: #fca5a5; font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
}

footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px; text-align: center;
    color: var(--text-muted); font-size: 0.85rem;
}
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .sep { margin: 0 10px; color: var(--border-light); }

@media (max-width: 560px) {
    main { padding: 40px 20px 64px; }
    .nav-inner { padding: 0 20px; }
}
