/* STARKOS — shared styling for the two legal pages (/impressum, /datenschutz).
 *
 * These are the only pages in the project with a real reading load, so they get
 * a measured line length and generous spacing rather than the app's dense
 * layout. Same palette, same fonts, same 18px radius as everywhere else.
 *
 * A separate file rather than inline <style>: two pages share it exactly, and a
 * legal text that drifts visually between its two halves reads as careless. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #040404;
  --card: #161616;
  --border: rgba(255,255,255,0.08);
  --text: #fff;
  --text-muted: rgba(255,255,255,0.72);
  --text-dim: rgba(255,255,255,0.5);
  --accent: #a78bfa;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── header ── */
.legal-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  /* 44px hit area without moving the mark visually */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-base) var(--ease);
}
.wordmark:active { transform: scale(0.97); opacity: 0.8; }

/* ── body ── */
main.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 22px 56px;
}

h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lede {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
}

h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
  margin-top: 38px;
  margin-bottom: 10px;
}

h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-top: 22px;
  margin-bottom: 6px;
}

p { margin-bottom: 12px; }
p + p { margin-top: 0; }

ul { margin: 6px 0 14px 20px; }
li { margin-bottom: 7px; }

strong { color: var(--text); font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,0.35);
  transition: border-color var(--t-base) var(--ease);
}
a:hover { border-bottom-color: var(--accent); }

/* A callout for the two statements that carry the most weight: that the photo
   is never stored, and that health data needs consent. */
.note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 18px 0;
}
.note strong { color: var(--accent); }

/* Processor table. Scrolls inside its own box so the page body never scrolls
   sideways on a 390px screen. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  background: var(--card);
}
tr:last-child td { border-bottom: none; }

/* ── footer ── */
.legal-foot {
  border-top: 1px solid var(--border);
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.legal-foot a {
  color: var(--text-dim);
  border-bottom: none;
  /* 44px hit area — these are the smallest targets on the page */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  transition: color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.legal-foot a:hover { color: var(--text); }
.legal-foot a:active { transform: scale(0.97); }
.legal-foot span { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
