/* the legal pages (impressum, datenschutz, imprint, privacy): the landing page's tokens, header
   and footer around one column of text. inter and space grotesk are self-hosted like on the landing page */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-variable.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-latin-variable.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
:root {
  --ground: #f4f6f8;
  --sheet: #ffffff;
  --ink: #0f1b2a;
  --ink-body: #3a4756;
  --ink-soft: #4a5868;
  --rule: #d7dde4;
  --accent: #c2410c;
  --accent-deep: #9a3412;
  --todo: #fff4d6;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; z-index: 10; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }

header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.site nav a { text-decoration: none; padding: 10px 0; }
.site nav a:hover { color: var(--accent); }

/* language dropdown at the top, as on the landing page */
.language { position: relative; }
.language summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language summary:hover { border-color: var(--ink-soft); }
.language[open] summary svg:last-child { transform: rotate(180deg); }
.language ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 16px 32px -16px rgba(15, 27, 42, 0.35); }
.language a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; }
.language a:hover { background: var(--ground); color: var(--accent); }
.language a[aria-current] { font-weight: 600; }
.language a[aria-current]::after { content: '✓'; color: var(--accent); }

main { padding: 56px 0 80px; }
article { max-width: 760px; overflow-wrap: break-word; }
/* long german words like datenschutzerklärung are hyphenated rather than cut */
article h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; hyphens: auto; }
article h2 { margin: 40px 0 8px; font-size: 24px; line-height: 1.2; hyphens: auto; }
article h3 { margin: 24px 0 4px; font-size: 19px; }
article p, article ul, article dl { margin: 0 0 14px; color: var(--ink-body); }
article ul { padding-left: 22px; }
article li { margin-bottom: 6px; }
article .updated { color: var(--ink-soft); font-size: 15px; }
article dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; }
@media (min-width: 600px) { article dl { grid-template-columns: 220px minmax(0, 1fr); } }
article dt { font-weight: 600; color: var(--ink); }
article dd { margin: 0 0 10px; }
/* a value the operator still has to fill in */
.todo { background: var(--todo); border-radius: 4px; padding: 0 4px; }

footer { border-top: 1px solid var(--rule); padding: 32px 0; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }
