/* The legal pages: one prose column in the site's palette and type,
   shared by EULA, Terms, Privacy and the Imprint. */

:root {
  --bg: #f8f9fc;
  --ink: #1c2333;
  --ink-soft: #5a6478;
  --line: #e2e6ee;
  --card: #ffffff;
  --blue: #2f6bff;
  --blue-soft: #eaf0ff;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --ink: #e8eaf0;
    --ink-soft: #9aa3b5;
    --line: #2a2f3c;
    --card: #1d2029;
    --blue: #6d94ff;
    --blue-soft: #232c42;
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap > *, .topbar, .foot { min-width: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ink-soft);
  font-weight: 600;
}
.topbar a:hover { color: var(--blue); }

.hero { padding: 48px 0 8px; }
.hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.hero p { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 58ch; }

section.legal { margin: 40px 0 0; }
section.legal h2 {
  font-size: 19px; line-height: 1.35; letter-spacing: -0.01em;
  margin: 34px 0 8px; padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
section.legal h2:first-of-type { border-top: 0; padding-top: 0; }
section.legal p, section.legal li { max-width: 68ch; overflow-wrap: anywhere; }
section.legal ul { padding-left: 22px; }
section.legal li { margin: 4px 0; }

dl.facts { margin: 14px 0; }
dl.facts dt { font-weight: 700; margin-top: 12px; }
dl.facts dd { margin: 2px 0 0; }

.note {
  background: var(--blue-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 14px 18px; margin: 18px 0;
}
.note p { margin: 0; }

.german { margin-top: 56px; }
.german > h2 {
  font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 4px;
}
.german .fine { margin-top: 0; }
.fine { color: var(--ink-soft); font-size: 13.5px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 64px 0 40px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 14px;
}
.foot a { color: var(--ink-soft); padding: 4px 0; }
.foot a:hover { color: var(--blue); }

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .topbar { padding: 12px 0; }
  .hero { padding: 28px 0 4px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  section.legal { margin-top: 30px; }
  section.legal h2 { margin-top: 28px; padding-top: 18px; }
  .note { margin-inline: -2px; padding: 13px 15px; border-radius: 12px; }
  .german { margin-top: 44px; }
  .german > h2 { font-size: 24px; }
  .foot { margin: 48px 0 28px; gap: 4px 16px; }
}

@media print {
  :root { --bg: #fff; --ink: #000; --ink-soft: #444; --line: #bbb; --blue: #000; --blue-soft: #fff; }
  body { font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .topbar, .foot { display: none; }
  .hero { padding-top: 0; }
  .hero h1 { font-size: 28pt; }
  section.legal { margin-top: 24px; }
  section.legal h2 { break-after: avoid; }
  section.legal p, section.legal li { max-width: none; }
  .note { border-color: #888; }
  a { color: inherit; text-decoration: underline; }
}
