/* Shared styles for legal pages — matches index.html design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:  #ffffff;
  --bg2: #f4f4f4;
  --bg3: #e8e8e8;
  --bg-dark: #1c1c1c;
  --bg-dark2: #252525;
  --ink: #161616;
  --ink2: #737373;
  --accent: #8EA69B;
  --accent-mid: #6e8a7e;
  --accent-dark: #44604f;
  --accent-light: #b8c8c0;
  --radius: 3px;
  --measure: 720px;
}

html { scroll-behavior: smooth; height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
body > nav { grid-row: auto; }
.legal-header { grid-row: 1; }
.legal-main { grid-row: 2; }
body > footer { grid-row: 3; }

/* NAV — identical to index */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-dark); }

.container { max-width: var(--measure); margin: 0 auto; }

/* PAGE HEADER — quiet, document-style */
.legal-header {
  padding: 140px 40px 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: var(--bg);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent-dark); }
.legal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.legal-header h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-meta {
  font-size: 14px;
  color: var(--ink2);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

/* CONTENT */
.legal-main {
  padding: 64px 40px 120px;
}
.legal-section {
  padding: 28px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.legal-section:first-child { border-top: none; padding-top: 8px; }
.legal-section h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink2);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent-dark) 35%, transparent);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.legal-section a:hover {
  text-decoration-color: var(--accent-dark);
  color: var(--ink);
}
.legal-section ul {
  margin: 8px 0 14px;
  padding-left: 22px;
  color: var(--ink2);
}
.legal-section ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 4px;
}
.legal-section ul li::marker {
  color: var(--accent-mid);
}

/* Definition list (Kontakt-style key/value) */
.legal-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 24px;
  margin-top: 4px;
}
.legal-dl dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  padding-top: 3px;
}
.legal-dl dd {
  font-size: 16px;
  color: var(--ink);
}

/* FOOTER — identical to index */
footer {
  background: var(--bg-dark);
  border-top: 1px solid #2a2a2a;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
footer p { font-size: 13px; color: color-mix(in srgb, #fff 40%, transparent); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: color-mix(in srgb, #fff 45%, transparent);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 720px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .legal-header { padding: 120px 20px 44px; }
  .legal-main { padding: 48px 20px 100px; }
  .legal-dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-dl dd { margin-bottom: 12px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px 20px; }
}
@media (max-width: 520px) {
  .nav-links { gap: 14px; }
  .nav-links li:nth-child(2),
  .nav-links li:nth-child(3) { display: none; }
}
