/* The look of the three public pages (privacy, terms, delete-account — src/modules/legal/HOW-IT-WORKS.md), in both
   languages: one file, so a change of look is made once. Served at /legal.css; each page links it as "legal.css", so a
   page opened from this folder on disk finds it too.
   Must never: load anything from another site (no web font, no image, no script) — the pages read the same on a slow
   phone, offline from a saved copy, and under the API's Content-Security-Policy. */

:root {
  --bg: #f6f5f1; --surface: #ffffff; --ink: #17191c; --muted: #555b64; --line: #e2dfd7;
  --accent: #0d6b4f; --accent-soft: #e3f1ec;
  --note-bg: #fff6dc; --note-ink: #5c4400; --note-line: #ecd38a;
  --ph-bg: #fde9e7; --ph-ink: #8f1d14; --ph-line: #d6574b;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315; --surface: #1b1d20; --ink: #ececea; --muted: #a8adb4; --line: #2f3237;
    --accent: #4cc39a; --accent-soft: #16302a;
    --note-bg: #33290d; --note-ink: #f2d98e; --note-line: #5c4a14;
    --ph-bg: #3a1714; --ph-ink: #ffb3aa; --ph-line: #c9584c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  overflow-wrap: anywhere;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  min-height: 56px; padding-top: 8px; padding-bottom: 8px;
}
.brand { font-weight: 800; letter-spacing: -.01em; }
.lang { font-size: 15px; color: var(--muted); }
.lang a { display: inline-block; padding: 10px 4px; font-weight: 600; }
main { padding: 20px 0 8px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 6px; letter-spacing: -.015em; }
h2 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
.lede { color: var(--muted); margin-bottom: 16px; }
.draft {
  background: var(--note-bg); color: var(--note-ink); border: 1px solid var(--note-line); border-radius: var(--radius);
  padding: 12px 14px; margin: 0 0 18px; font-size: 15px;
}
.draft strong { display: block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.card > :last-child { margin-bottom: 0; }
.ph {
  background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed var(--ph-line); border-radius: 6px;
  padding: 0 4px; font-weight: 600;
}
.steps li { margin: 8px 0; }
.when li { list-style: none; border-left: 3px solid var(--accent-soft); padding: 2px 0 10px 14px; margin: 0; }
.when { padding-left: 0; }
kbd { font: 700 .95em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
a { color: var(--accent); }
.foot { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; margin-top: 24px; }

/* CHANGE-71 — the public pages (src/modules/public-pages/): the bar's links, the match rows, the tables. A table wider
   than a phone scrolls inside itself, never the page. */
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-top: 8px; }
.bar nav { width: 100%; font-size: 15px; }
.bar nav a, .foot a { display: inline-block; padding: 10px 4px; }
.list { list-style: none; padding-left: 0; }
.list > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; }
.match a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; }
.match .at { min-width: 48px; color: var(--muted); font-size: 14px; }
.match .side { flex: 1 1 30%; }
.score, .scoreline b, td { font-variant-numeric: tabular-nums; }
.scoreline { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 20px; }
.state, .muted, .small { color: var(--muted); font-size: 14px; }
.note { background: var(--note-bg); color: var(--note-ink); border: 1px solid var(--note-line); border-radius: var(--radius); padding: 10px 12px; }
.events { list-style: none; padding-left: 0; }
.events .away { text-align: right; }
.league, .stats { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; }
th[scope="row"] { text-align: left; white-space: nowrap; }
img { vertical-align: middle; }
code { font: 700 1em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
