/* Chrome for the generated legal pages (scripts/build-legal.mjs) and 404.html. Self-contained: no
   webfont, no second stylesheet, no consent banner. Tokens match public/site.css so the legal
   pages do not look like a different site. */
:root {
  --canvas: #07080a;
  --surface: #0d0d0d;
  --hairline: #242728;
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f4f6;
  --body: #cdcdcd;
  --mute: #9c9c9d;
  --accent: #b5d1ff;
  --r-sm: 6px;
  --maxw: 760px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--body);
  /* System fonts only. A German site that pulls a webfont from a third party hands that third
     party every visitor's IP address; see docs/legal/datenschutz.md §2.1. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--hairline-strong); outline-offset: 2px; border-radius: 3px; }

header.site, footer.site { border-bottom: 1px solid var(--hairline); }
footer.site { border-bottom: 0; border-top: 1px solid var(--hairline); margin-top: 72px; }
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
}
header.site .brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 500; text-decoration: none;
}
header.site .back { font-size: 14px; }

main { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 0; }
h1 { color: var(--ink); font-size: clamp(28px, 5vw, 38px); line-height: 1.15; font-weight: 600; margin-bottom: 8px; }
h2 { color: var(--ink); font-size: 22px; line-height: 1.25; font-weight: 500; margin: 40px 0 12px; }
h3 { color: var(--ink); font-size: 18px; font-weight: 500; margin: 28px 0 10px; }
p, ul, ol, .table { margin-bottom: 16px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px;
}
p.stand { color: var(--mute); font-size: 15px; margin-bottom: 32px; }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
th { color: var(--ink); font-weight: 500; }

footer.site nav { max-width: var(--maxw); margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site nav a { font-size: 14px; }
footer.site nav a[aria-current="page"] { color: var(--mute); text-decoration: none; }

/* Tables stack into labelled cards on phones; data-label is written by build-legal.mjs. */
@media (max-width: 560px) {
  body { font-size: 16px; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--hairline); padding: 8px 0; }
  td { border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; color: var(--mute); font-size: 13px; }
}
