/* Shared styling for the standalone legal pages (/impressum.html, /privacy.html).
   These live outside the Vite/Tailwind pipeline, so the theme tokens from
   tailwind.config.js are mirrored here by hand. Every request is same-origin —
   the privacy page shouldn't itself phone home to anyone. */

/* Same self-hosted Inter the app bundle uses; declared again because these pages
   don't load the Vite CSS. Same URLs, so it's one shared cache entry. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0d13;
  --ink-panel: #12161e;
  --ink-line: #232a35;
  --fg: #edeff3;
  --muted: #98a2b0;
  --dim: #6a7280;
  --accent: #5ea0f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(1000px 500px at 82% -10%, rgba(94, 160, 242, 0.09), transparent 68%);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.15s;
}
.back:hover { color: var(--fg); }

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  margin: 0 0 28px;
}

.h1-alt { color: var(--muted); font-weight: 600; }

/* Language jump links on the bilingual Impressum. */
.langnav {
  display: flex;
  gap: 8px;
  margin: 0 0 40px;
}
.langnav a {
  border: 1px solid var(--ink-line);
  background: var(--ink-panel);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.langnav a:hover {
  color: var(--fg);
  border-color: var(--ink-line2, #2c343f);
  text-decoration: none;
}

/* Divider announcing the second language block. */
.lang-heading {
  margin-top: 64px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 700;
}

/* Anchored sections shouldn't hide under the top of the viewport. */
section[id] { scroll-margin-top: 24px; }

h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 6px;
}

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 6px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

address {
  font-style: normal;
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 20px;
}

/* Fields the site owner still has to fill in. Loud on purpose so an
   unfinished page is obvious at a glance rather than shipping half-blank. */
.todo {
  background: rgba(242, 160, 94, 0.12);
  border-bottom: 1px dashed rgba(242, 160, 94, 0.6);
  color: #f2a05e;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.95em;
}

.note {
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  color: var(--dim);
  font-size: 12.5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 560px) {
  h1 { font-size: 26px; }
  .wrap { padding: 32px 20px 64px; }
}
