/* ════════════════════════════════════════
   LEGAL PAGE — Impressum & Datenschutz
   ════════════════════════════════════════ */

/* Nav on light-background pages — always dark, regardless of scroll state */
body.page-light #nav .nav-links a {
  color: var(--text-mid);
}
body.page-light #nav .nav-links a:hover {
  color: var(--text);
}
body.page-light #nav .nav-logo img {
  filter: none;
  opacity: 1;
}
body.page-light #nav.scrolled {
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--rule-light);
}
body.page-light #nav:not(.scrolled) {
  background: transparent;
}

/* Page wrapper */
.legal-page {
  background: var(--bg);
  padding-top: 140px;
  padding-bottom: 120px;
}

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Hero header */
.legal-hero {
  margin-bottom: 72px;
}

/* Section headings */
.legal-section h2 {
  font-family: var(--font-condensed);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 40px;
}

.legal-section h3 {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 10px;
}

.legal-section h4 {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--charcoal);
  margin: 20px 0 6px;
}

/* Content blocks */
.legal-block {
  margin-bottom: 40px;
}

.legal-block p,
.legal-block dd {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text-mid);
}

.legal-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-block a:hover {
  color: var(--accent-hover);
}

/* Definition list for credits */
.legal-block dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  font-size: 0.85rem;
}

.legal-block dt {
  color: var(--text-quiet);
  font-weight: 400;
}

.legal-block dd {
  color: var(--text-mid);
  margin: 0;
}

/* Horizontal rule between Impressum and Datenschutz */
.legal-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--rule), transparent);
  margin: 64px 0;
}

/* Responsive */
@media (max-width: 600px) {
  .legal-page {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .legal-inner {
    padding: 0 24px;
  }

  .legal-hero {
    margin-bottom: 48px;
  }

  .legal-block dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-block dt {
    margin-top: 10px;
  }
}
