/* Shared legal-page styles (Impressum, Datenschutz) — match main site design */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:root {
  --bg:        oklch(0.16 0.006 60);
  --bg-2:      oklch(0.20 0.008 60);
  --bg-3:      oklch(0.24 0.008 60);
  --line:      oklch(0.32 0.008 60);
  --line-soft: oklch(0.26 0.008 60);
  --fg:        oklch(0.97 0.005 80);
  --fg-2:      oklch(0.82 0.008 70);
  --fg-3:      oklch(0.62 0.010 70);
  --accent:    oklch(0.74 0.14 55);
  --accent-2:  oklch(0.80 0.10 55);
  --accent-ink: oklch(0.20 0.04 55);
  --radius:    14px;
  --radius-lg: 20px;
  --maxw: 820px;
  --pad:  clamp(20px, 4vw, 48px);
  --t: cubic-bezier(.2, .7, .2, 1);
}

html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }

.legal-nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.legal-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-mark {
  width: 36px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(1.05);
}
.brand-name span { color: var(--fg-3); }
.back-link {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--t);
}
.back-link:hover { color: var(--accent); }

.legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--pad) clamp(80px, 11vw, 140px);
}

.legal .eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.legal .eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--fg-3);
}

.legal h1 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-top: 20px;
  margin-bottom: 56px;
  text-wrap: balance;
}

.legal section.block {
  padding: 36px 0;
  border-top: 1px solid var(--line-soft);
}
.legal section.block:first-of-type { border-top: none; padding-top: 0; }

.legal h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.legal h3 {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--fg);
  margin: 24px 0 8px;
}
.legal p, .legal ul {
  color: var(--fg-2);
  font-size: 16px;
  margin-bottom: 12px;
  text-wrap: pretty;
}
.legal ul { padding-left: 0; }
.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--accent);
}
.legal a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  transition: color .2s var(--t), border-color .2s var(--t);
  word-break: break-word;
}
.legal a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.legal strong { color: var(--fg); font-weight: 500; }

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 8px 0 4px;
}
.contact-card p {
  margin-bottom: 4px;
}
.contact-card p:last-child { margin-bottom: 0; }

.legal-footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px var(--pad);
  color: var(--fg-3);
  font-size: 13px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.legal-footer-links { display: flex; gap: 24px; }
.legal-footer-links a { transition: color .2s var(--t); }
.legal-footer-links a:hover { color: var(--fg); }
