/* Shared styles for legal subpages (Impressum / Datenschutz) */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background .35s ease, color .35s ease;
}

body[data-mode="light"] {
  --bg: #f6f6f4;
  --fg: #0a0a0a;
  --accent: #c7ff3a;
  --accent-deep: #0a0a0a;
  --accent-text: #2a3a06;
  --muted: rgba(10,10,10,0.55);
  --hair: rgba(10,10,10,0.14);
}
body[data-mode="dark"] {
  --bg: #0a0a0a;
  --fg: #f6f6f4;
  --accent: #c7ff3a;
  --accent-deep: #0a0a0a;
  --accent-text: #c7ff3a;
  --muted: rgba(246,246,244,0.55);
  --hair: rgba(246,246,244,0.14);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Top header ---------- */
.legal-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  transition: opacity .15s;
}
.legal-back:hover { opacity: 0.7; }
.legal-back-arrow {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--accent-deep);
  border-radius: 99px;
  font-size: 14px;
}
.legal-tools {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 500;
}
.legal-tools button {
  padding: 6px 11px;
  border-radius: 99px;
  opacity: 0.6;
  transition: opacity .15s, background .15s;
}
.legal-tools button:hover { opacity: 1; }
.legal-tools [data-mode-btn] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  opacity: 0.78;
}
.legal-tools [data-mode-btn] svg { width: 16px; height: 16px; display: block; }
.legal-tools button[data-active="true"] {
  background: var(--fg);
  color: var(--bg);
  opacity: 1;
}
.legal-tools .divider { width: 1px; align-self: stretch; background: var(--hair); margin: 0 2px; }

/* ---------- Page body ---------- */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 48px 100px;
}

.legal-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}
.legal-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px;
  background: var(--accent-deep);
}
.legal-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin: 28px 0 16px;
}
.legal-title .accent { color: var(--accent-text); }
.legal-intro {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 56px;
  max-width: 640px;
}

.legal-section {
  padding: 36px 0;
  border-top: 1px solid var(--hair);
}
.legal-section:last-of-type { border-bottom: 1px solid var(--hair); }
.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.legal-section p, .legal-section li {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: var(--fg);
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--accent-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 500;
}
.legal-address {
  font-style: normal;
  line-height: 1.7;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}
.legal-address strong { font-weight: 700; }

/* ---------- Footer ---------- */
.legal-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 48px 60px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hair);
}
.legal-footer-links { display: flex; gap: 20px; }
.legal-footer-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.legal-footer-links a:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ---------- i18n visibility ---------- */
[data-lang="de"] body[data-active-lang="en"] [lang="de"],
[data-lang="en"] body[data-active-lang="de"] [lang="en"] { display: none; }
body[data-active-lang="de"] [lang="en"] { display: none; }
body[data-active-lang="en"] [lang="de"] { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .legal-header { padding: 14px 20px; }
  .legal-main { padding: 56px 20px 80px; }
  .legal-footer { padding: 24px 20px 48px; }
  .legal-back { font-size: 14px; }
  .legal-back-arrow { width: 26px; height: 26px; }
  .legal-tools { font-size: 11px; }
  .legal-tools button { padding: 5px 9px; }
  .legal-title { font-size: clamp(40px, 11vw, 60px); }
  .legal-intro { font-size: 17px; margin-bottom: 40px; }
  .legal-section { padding: 28px 0; }
  .legal-section h2 { font-size: 20px; }
  .legal-section p, .legal-section li { font-size: 15px; }
}
