/* =====================================================================
   LEGAL PAGES — Impressum, Datenschutz, AGB
   Gemeinsamer Styles-Layer für saubere, lesbare Legal-Templates.
   Light-Theme: cream paper auf earth-dark, gut lesbare Body-Größe,
   Section-Cards mit dezenter Border, klare Typo-Hierarchie.
   ===================================================================== */

body {
  background: #1a0d07;                          /* earth dark wie Site-Footer */
  color: #f4efe6;
  font-family: var(--sans, 'TT Norms', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* ===== Top Nav ===== */
.legal-nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.legal-logo {
  font-family: var(--serif, 'TT Norms');
  font-size: 22px;
  font-weight: 600;
  color: #f4efe6;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.legal-logo strong { font-weight: 700; }
.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.legal-nav-back:hover {
  color: #f4efe6;
  border-color: rgba(244, 239, 230, 0.42);
  background: rgba(244, 239, 230, 0.04);
}

/* ===== Page Container ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 40px) clamp(80px, 10vw, 140px);
}

/* Kicker (oberes Mono-Label) */
.legal-kicker {
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  margin: 0 0 24px;
}

/* H1 */
.legal-h1 {
  font-family: var(--serif, 'TT Norms');
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4efe6;
  margin: 0 0 16px;
}

/* Lead-Text unter H1 */
.legal-lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.55);
  margin: 0 0 64px;
  font-family: var(--mono, 'Geist Mono', monospace);
  letter-spacing: 0.02em;
}

/* ===== Body Sections ===== */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.legal-section {
  display: block;
}
.legal-section h2 {
  font-family: var(--serif, 'TT Norms');
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  color: #f4efe6;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.legal-section h3 {
  font-family: var(--sans, 'TT Norms');
  font-weight: 700;
  font-size: 17px;
  color: #f4efe6;
  margin: 24px 0 8px;
}
.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.78);
  margin: 0 0 14px;
}
.legal-section strong {
  color: #f4efe6;
  font-weight: 600;
}
.legal-section a {
  color: #ffd9a8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.legal-section a:hover {
  text-decoration: none;
  color: #ffe8c8;
}
.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-section ul li::marker {
  color: rgba(244, 239, 230, 0.35);
}

/* Contact-Box (definition list) */
.legal-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 24px;
  align-items: baseline;
}
.legal-dl dt {
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}
.legal-dl dd {
  margin: 0;
  font-size: 16px;
  color: #f4efe6;
}
.legal-dl dd a {
  color: #f4efe6;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 217, 168, 0.4);
  padding-bottom: 1px;
}
.legal-dl dd a:hover {
  color: #ffe8c8;
  border-bottom-color: #ffd9a8;
}

/* Highlight-Card (für Adresse, Verantwortlich, etc.) */
.legal-card {
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid rgba(244, 239, 230, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0;
}
.legal-card p {
  margin: 0 0 6px;
  color: #f4efe6;
}
.legal-card p:last-child { margin-bottom: 0; }

/* Placeholder-Hinweis-Box (Template-Hinweise) */
.legal-placeholder {
  background: rgba(255, 217, 168, 0.08);
  border-left: 3px solid #ffd9a8;
  padding: 14px 18px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 239, 230, 0.72);
  border-radius: 0 8px 8px 0;
}
.legal-placeholder::before {
  content: '⚠ Template-Hinweis: ';
  color: #ffd9a8;
  font-weight: 700;
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Warning-Box (red) */
.legal-warning {
  background: rgba(255, 99, 99, 0.08);
  border-left: 3px solid #ff8c8c;
  padding: 18px 22px;
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 239, 230, 0.88);
  border-radius: 0 8px 8px 0;
}
.legal-warning strong { color: #ffb8b8; }

/* Footer */
.legal-foot {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 239, 230, 0.08);
  font-family: var(--mono, 'Geist Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.45);
}
.legal-foot p { margin: 0; }
.legal-foot a {
  color: rgba(244, 239, 230, 0.6);
  border-bottom: 1px dotted rgba(244, 239, 230, 0.3);
  text-decoration: none;
  padding-bottom: 1px;
}
.legal-foot a:hover {
  color: #f4efe6;
  border-bottom-color: #f4efe6;
}

/* ===== Mobile ≤640px ===== */
@media (max-width: 640px) {
  .legal-nav { padding: 20px 20px; }
  .legal-h1 { font-size: 40px; }
  .legal-lead { margin-bottom: 40px; }
  .legal-body { gap: 36px; }
  .legal-section h2 { font-size: 22px; }
  .legal-section p, .legal-section li { font-size: 15px; }
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .legal-dl dt { margin-top: 12px; }
  .legal-dl dt:first-child { margin-top: 0; }
}
