:root { --bg:#fbfaf8; --fg:#1d1b20; --muted:#5f5a66; --line:#d9d4de; --accent:#5b3fa8; --error:#b3261e; --surface:#ffffff; --note:#f1edf9; }
@media (prefers-color-scheme: dark) { :root { --bg:#141218; --fg:#e8e3ec; --muted:#a9a2b1; --line:#3a3540; --accent:#c4b0ff; --error:#f2b8b5; --surface:#1d1a22; --note:#221d2e; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 40px 16px 64px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
p, li { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 2px; }
label { display:block; font-weight:600; margin: 18px 0 6px; }
input, select, textarea { width:100%; font:inherit; color:var(--fg); background:transparent; border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
textarea { min-height: 96px; resize: vertical; }
button { margin-top: 24px; font:inherit; font-weight:600; color:#fff; background:var(--accent); border:0; border-radius:8px; padding:12px 18px; cursor:pointer; }
@media (prefers-color-scheme: dark) { button { color:#1d1b20; } }
.hint { font-size: .9rem; margin-top: 4px; }
.error { color: var(--error); font-weight: 600; }
.hp { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

/* Long documents: terms, privacy. */
main.doc { max-width: 44rem; }
.doc header { border-bottom: 3px solid var(--accent); padding-bottom: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.2; margin: 6px 0 8px; text-wrap: balance; }
.meta { margin: 0; font-size: .95rem; }
.doc h2 { font-size: 1.2rem; margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); text-wrap: balance; }
.doc h3 { font-size: 1.02rem; margin: 24px 0 6px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--fg); }
.summary { background: var(--note); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 0 0 24px; }
.summary p:last-child { margin-bottom: 0; }
.doc nav { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 8px; }
.doc nav p { margin: 0 0 6px; font-weight: 700; color: var(--fg); }
.doc nav ol { margin: 0; padding-left: 1.3rem; columns: 2 14rem; column-gap: 2rem; }
.doc nav li { margin-bottom: 4px; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }
td { color: var(--muted); }
/* On a phone, each row is its own labelled block rather than a table to scroll sideways. */
@media (max-width: 560px) {
  table { min-width: 0; }
  thead { display: none; }
  tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { display: block; border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  td:first-child { font-weight: 700; color: var(--fg); }
}
.doc footer { margin-top: 48px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 16px; }
