/* The legal pages (D-333, S13-28): /privacy, /terms and /about. Plain pages:
   no script, nothing from another origin, and they never sign anyone in, so
   reading them does not make you a guest. The game's palette (Survey, D-274)
   and its title face; the prose in the device's own sans, which reads better
   at length than the game's mono. Light or dark follows the device. */

@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/zilla-slab-600.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/zilla-slab-700.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #e9e3d7;
  --panel: #f6f2ea;
  --border: #c3bba8;
  --text: #16120b;
  --text-dim: #6a6354;
  --link: #9e3000;
  --font-title: 'Zilla Slab', Georgia, serif;
  --measure: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110c;
    --panel: #1c1810;
    --border: #3a3324;
    --text: #ece4d6;
    --text-dim: #948a76;
    --link: #ffc08a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 2px; }

.lg-top, .lg-main, .lg-foot { max-width: var(--measure); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.lg-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0 16px; padding-top: 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--text); text-decoration: none;
}
/* The game's mark beside its name (D-364): Design's icon, its corners rounded
   as a Home Screen rounds them. */
.lg-mark { display: block; flex: none; border-radius: 7px; }
.lg-nav { display: flex; flex-wrap: wrap; }
/* Each link a 44px target (G6). */
.lg-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text-dim); }
.lg-nav a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

.lg-main { padding-top: 8px; padding-bottom: 32px; }
/* The day page (D-376): the day's picture, whole at any width, and its one way in. */
.day-pic { display: block; width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 8px; }
.day-play { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--link); color: var(--bg); font-weight: 700; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; margin: 24px 0 4px; }
h2 { font-size: 1.35rem; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
h3 { font-size: 1.1rem; margin: 24px 0 4px; }
.lg-date { margin: 0 0 16px; color: var(--text-dim); }
ul { padding-left: 1.3em; }
li { margin: 4px 0; }
code { font-size: 0.9em; }

/* One kind of record: what, why, the legal basis, how long. A list of terms
   rather than a table, which would not fit a phone. */
.lg-card { margin: 12px 0; padding: 4px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; }
.lg-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; }
.lg-facts dt { font-weight: 600; }
.lg-facts dd { margin: 0; }
@media (max-width: 480px) {
  .lg-facts { grid-template-columns: 1fr; gap: 0; }
  .lg-facts dd { margin-bottom: 8px; }
}

.lg-foot { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.9rem; }
