/* 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 read as the same site. Design only: the text comes from docs/legal/*.md and nothing here
   may add, hide or reorder any of it. */
:root {
  --canvas: #07080a;
  --surface: #0f1013;
  --surface-2: #14161a;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --ink: #f4f5f7;
  --body: #c9ccd1;
  --mute: #8d9199;
  --accent: #e6ba85;
  --accent-rgb: 217, 142, 58;
  --r-sm: 8px;
  --maxw: 760px;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #fbfaf7;
    --surface: #ffffff;
    --surface-2: #f4f3ef;
    --hairline: rgba(20, 21, 24, 0.08);
    --hairline-strong: rgba(20, 21, 24, 0.16);
    --ink: #141518;
    --body: #2c2f35;
    --mute: #5f636b;
    --accent: #8a5418;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 60% 320px at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    var(--canvas);
  background-repeat: no-repeat;
  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: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--accent-rgb), 0.45); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The header is a floating pill, like the product page's navigation. */
header.site {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--maxw) + 48px); margin: 12px auto 0; padding: 8px 10px 8px 12px;
  border-radius: 999px; border: 1px solid var(--hairline);
  background: rgba(15, 16, 19, 0.66);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
@media (prefers-color-scheme: light) { header.site { background: rgba(251, 250, 247, 0.75); } }
header.site .brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
}
header.site .brand img { border-radius: 7px; }
header.site .back {
  font-size: 14px; color: var(--ink); text-decoration: none;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  transition: background 0.2s ease;
}
header.site .back:hover { background: var(--surface-2); }

main { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 0; }
article {
  padding: 48px 48px 32px; border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 240px);
  border: 1px solid var(--hairline);
}
h1 {
  color: var(--ink); font-size: clamp(32px, 6vw, 48px); line-height: 1.05; font-weight: 600;
  letter-spacing: -0.035em; margin-bottom: 12px;
}
h2 {
  color: var(--ink); font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em;
  margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--hairline);
}
h3 { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 30px 0 10px; }
h2, h3 { scroll-margin-top: 96px; }
p, ul, ol, .table { margin-bottom: 16px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
li::marker { color: var(--mute); }
strong { color: var(--ink); font-weight: 600; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em; background: var(--canvas);
  border: 1px solid var(--hairline-strong); border-radius: 5px; padding: 1px 6px;
}
p.stand {
  display: inline-block; color: var(--mute); font-size: 14px; margin-bottom: 32px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hairline-strong);
}

.table { overflow-x: auto; border-radius: 14px; border: 1px solid var(--hairline); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink); font-weight: 600; background: var(--surface-2); font-size: 14px; }

footer.site { max-width: calc(var(--maxw) + 48px); margin: 56px auto 0; }
footer.site nav {
  margin: 0 24px; padding: 24px 0 48px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
footer.site nav a { font-size: 14px; color: var(--mute); text-decoration: none; }
footer.site nav a:hover { color: var(--ink); }
footer.site nav a[aria-current="page"] { color: var(--ink); }

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