/* Shared styling for the two hosted legal pages (/terms, /privacy).
 *
 * Plain static HTML on purpose: App Review and Play both fetch these URLs directly, sometimes
 * without JavaScript, so they must render as documents — never as a route into the Wasm app.
 * System font stack only (no webfont request), and a light-dark aware palette echoing the app's
 * flat, hard-bordered look without pulling in the design system. */

:root {
    color-scheme: light dark;
    --bg: #fdfbf4;
    --surface: #ffffff;
    --ink: #1a1a1a;
    --muted: #5c5c5c;
    --line: #1a1a1a;
    --accent: #f5c443;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16150f;
        --surface: #211f18;
        --ink: #f4f1e6;
        --muted: #a9a496;
        --line: #f4f1e6;
        --accent: #f5c443;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 2rem 1.25rem 5rem;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

main {
    max-width: 46rem;
    margin: 0 auto;
}

.brand {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.35rem 0.75rem;
    border: 3px solid var(--line);
    border-radius: 10px;
    background: var(--accent);
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

h1 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h2 {
    margin: 2.5rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.updated {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.callout {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border: 3px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 5px 5px 0 var(--line);
}

.callout p:first-child {
    margin-top: 0;
}

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

/* Anything still wrapped in this MUST be filled in before the pages are treated as final. */
.todo {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: #ffd9d9;
    color: #8a1c1c;
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
    .todo {
        background: #5c1f1f;
        color: #ffd9d9;
    }
}

a {
    color: inherit;
    text-underline-offset: 2px;
}

table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 0.6rem 0.7rem;
    border: 2px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface);
    font-weight: 800;
}

/* Wide tables scroll inside their own box rather than making the page scroll sideways. */
.scroll {
    overflow-x: auto;
}

footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
