/* Legal and support pages (infra/prod/site). Colours from design/tokens.json. */
:root {
  --paper: #f4f2ed;
  --surface: #ffffff;
  --line: #d9d5cc;
  --ink: #15171c;
  --text: #2b2e34;
  --muted: #6b6e75;
  --accent: #b4232c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171c;
    --surface: #1e2127;
    --line: #3a3d44;
    --ink: #f4f2ed;
    --text: #dcdad5;
    --muted: #a3a5aa;
    --accent: #f0757b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header,
main,
footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
}

.langs a {
  margin-left: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.langs a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
}

main {
  padding-top: 8px;
  padding-bottom: 32px;
}

h1 {
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 24px 0 4px;
}

h2 {
  color: var(--ink);
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

.date {
  color: var(--muted);
  margin-top: 0;
}

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

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 4px;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 16px;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
  margin-right: 16px;
  display: inline-block;
}
