/* Styling for terms.html and privacy-policy.html.

   These two pages are deliberately NOT part of the app: no Tailwind CDN, no
   component loader, no service worker registration, no Firebase. A legal
   document has to render for somebody who has not signed in, has JavaScript
   off, or is reading it through a bot — so it is one small stylesheet and
   plain semantic HTML.

   Tokens are copied rather than imported from styles.css, which carries the
   whole app's design system to say very little here. */
:root {
    --bg: #F3F9FA;
    --surface: #FFFFFF;
    --ink: #16323E;
    --ink-2: #5E7883;
    --ink-3: #8FA6AF;
    --accent: #177C95;
    --line: #E3EDF0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A1A22;
        --surface: #12242E;
        --ink: #EAF3F6;
        --ink-2: #A8BFC8;
        --ink-3: #7B959F;
        --accent: #5BB8D9;
        --line: #1E3641;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 20px 80px;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 680px;
    margin: 0 auto;
}

header {
    padding: 32px 0 8px;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}

h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.updated {
    margin: 0 0 32px;
    color: var(--ink-3);
    font-size: 13px;
}

h2 {
    margin: 36px 0 10px;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

p,
li {
    color: var(--ink-2);
}

p {
    margin: 0 0 14px;
}

ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

li {
    margin-bottom: 7px;
}

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

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

code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface);
    border: 1px solid var(--line);
    font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--ink);
}

/* The "this is a draft" banner. Deliberately loud: these documents describe
   what the code does, which is not the same as having been reviewed by a
   lawyer, and shipping them silently would imply it had been. */
.notice {
    margin: 0 0 28px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
}

table {
    width: 100%;
    margin: 0 0 18px;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--ink);
    font-weight: 600;
}

td {
    color: var(--ink-2);
}

footer {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 13px;
}
