/* Shared styles for legal pages (Impressum, Datenschutz). Mirrors the
   homepage's design system but trims to what static content needs. */

:root {
  --accent: #0f766e;
  --accent-strong: #0a5f59;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --muted: #6b7280;
  --line: #e6e7eb;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;
  --bg: #ffffff;

  --radius-lg: 22px;
  --radius-pill: 999px;

  --font: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #9ca3af;
  --line: #27272a;
  --surface: #0c0d10;
  --surface-2: #131418;
  --surface-3: #1c1d21;
  --bg: #0a0a0c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100svh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* === Nav (lightweight) === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.nav-back {
  font-size: 14px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  transition: background 0.15s, color 0.15s;
}

.nav-back:hover {
  background: var(--surface-3);
  color: var(--ink);
}

/* === Legal content === */
main {
  padding: 56px 0 96px;
}

main h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.08;
}

main .lede {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

main section {
  margin-top: 36px;
}

main section h2 {
  margin: 0 0 12px;
  font-size: 19px;
  letter-spacing: -0.012em;
  font-weight: 600;
  line-height: 1.3;
}

main p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

main ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

main li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 4px;
}

main a {
  color: var(--accent);
}

main a:hover {
  text-decoration: underline;
}

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

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 22px;
}

@media (max-width: 720px) {
  .container,
  .nav-inner,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  main {
    padding: 36px 0 64px;
  }
  main h1 {
    font-size: clamp(28px, 7vw, 36px);
  }
}
