/* The text pages (privacy policy, terms, Impressum): the landing page's ground, fonts and colours (the app's
   "Rescue & charcoal" palette, app/src/theme/index.ts, since 2026-10-19), one readable column.
   Fonts: fonts/fonts.css (served from here, no Google requests). */
:root { --sand: #EEEBE3; --paper: #FCFCF8; --ink: #132026; --olive: #2B3035; --orange: #E45523; --muted: #5B6866; --rule: #B3BAB6; --line: #D8D5CA; }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--sand); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* the faint contour map behind everything, as on the landing page; fixed so long pages keep it */
body::before { content: ""; position: fixed; inset: 0; background: url(contours.png) center / cover no-repeat; opacity: .1; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nav { height: 96px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 1px 1.5px rgba(19, 32, 38, 0.3)); }
.brand span { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; }
.lang { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--olive); }
.lang a { color: inherit; }

main { flex: 1; padding: 24px 0 64px; }
.doc { max-width: 760px; margin: 0 auto; background: var(--paper); border-radius: 20px; padding: 48px 56px 56px; box-shadow: 0 1px 0 rgba(19,32,38,.04), 0 12px 32px rgba(19,32,38,.06); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--olive); color: var(--sand); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
/* long German words ("Datenschutzerklärung") are wider than a phone's column: hyphenate in the page's
   language, and break anywhere only if that still does not fit */
h1 { margin: 18px 0 0; font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.08; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.meta { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
h2 { margin: 44px 0 0; padding-top: 28px; border-top: 1.5px dashed var(--rule); font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; line-height: 1.2; }
h3 { margin: 28px 0 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
p, li, dd { font-size: 17px; line-height: 1.62; }
p { margin: 12px 0 0; }
ul, ol { margin: 12px 0 0; padding-left: 22px; }
li + li { margin-top: 6px; }
a { color: var(--olive); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* charcoal to ink is too small a step to see: hover thickens the underline (no colour that drops contrast) */
a:hover, a:focus-visible { color: var(--ink); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
.lead { font-size: 19px; color: var(--olive); }
/* a short fact list: label + value */
dl.facts { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
dl.facts dt { font-size: 15px; font-weight: 700; color: var(--muted); padding-top: 2px; }
dl.facts dd { margin: 0; }
/* "at a glance" box */
.glance { margin: 28px 0 0; padding: 20px 24px; border-radius: 14px; background: var(--sand); }
.glance h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.glance ul { margin-top: 10px; }
/* the contents list */
nav.toc { margin: 28px 0 0; }
nav.toc ol { columns: 2; column-gap: 32px; }
nav.toc li { font-size: 15px; break-inside: avoid; }
/* placeholders still to fill: [like this] */
.ph { background: #FBE4DA; color: #AE3F17; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.note { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--orange); background: #FCEEE7; font-size: 15px; line-height: 1.5; }
address { font-style: normal; font-size: 17px; line-height: 1.62; margin: 12px 0 0; }
/* the open-source licences (licenses/, written by scripts/licenses_page.py): one fold per package */
ul.counts { columns: 2; column-gap: 32px; }
ul.counts li { font-size: 15px; break-inside: avoid; }
.pkgs { margin: 16px 0 0; border-bottom: 1px solid var(--line); }
details.pkg { border-top: 1px solid var(--line); }
details.pkg summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 4px; cursor: pointer; list-style: none; }
details.pkg summary::-webkit-details-marker { display: none; }
details.pkg summary::before { content: "+"; width: 14px; flex: none; font-weight: 700; color: var(--orange); }
details.pkg[open] summary::before { content: "−"; }
details.pkg summary:hover .name, details.pkg summary:focus-visible .name { text-decoration: underline; text-underline-offset: 3px; }
details.pkg .name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
details.pkg .lic { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--olive); }
details.pkg[open] { padding-bottom: 18px; }
details.pkg p { margin: 8px 0 0 24px; font-size: 15px; line-height: 1.5; }
details.pkg p.from { color: var(--muted); }
details.pkg p.file { margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
details.pkg pre { margin: 6px 0 0 24px; padding: 14px 16px; max-height: 360px; overflow: auto; background: var(--sand); border-radius: 10px;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 28px 0 40px; border-top: 1.5px dashed var(--rule); font-size: 13px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a:focus-visible, footer a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .page { padding: 0 16px; }
  .nav { height: 72px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 19px; }
  main { padding: 8px 0 40px; }
  .doc { padding: 28px 20px 36px; border-radius: 16px; }
  h2 { font-size: 22px; margin-top: 36px; padding-top: 24px; }
  p, li, dd { font-size: 16px; }
  .lead { font-size: 17px; }
  nav.toc ol { columns: 1; }
  ul.counts { columns: 1; }
  details.pkg p, details.pkg pre { margin-left: 0; }
  /* licence texts keep their own ~80-column lines: rewrapped on a phone they turn ragged, so the box scrolls */
  details.pkg pre { padding: 12px; font-size: 11.5px; white-space: pre; overflow-wrap: normal; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd + dt { margin-top: 8px; }
  footer { padding: 20px 0 32px; font-size: 12px; }
}
