/* === LEGAL PAGES — Stylesheet für Impressum, Datenschutz, AGB, Widerruf === */
/* Brand: Mein Diabetes, mein Leben · Moulay */

:root {
  --primary: #1a2a52;
  --primary-dark: #0f1a36;
  --accent: #e87f1f;
  --accent-dark: #c8651a;
  --bg: #fdfaf5;
  --surface: #faf3e9;
  --border: #ead9c0;
  --text: #1a2a52;
  --text-soft: #2c3e6b;
  --muted: #6b7a99;
  --radius: 12px;
  --max-width: 800px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

/* === HEADER === */
.legal-header {
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
  border-bottom: 4px solid var(--accent);
}
.legal-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.legal-header img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}
.legal-header-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.legal-header-title small {
  display: block;
  font-size: 0.72rem;
  color: #ffa256;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.legal-header a.home-link {
  margin-left: auto;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  transition: background 0.2s ease;
}
.legal-header a.home-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* === MAIN === */
.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal-meta {
  display: inline-block;
  background: var(--surface);
  color: var(--text-soft);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--primary);
  margin: 24px 0 8px;
  font-weight: 700;
}
.legal-content h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin: 18px 0 6px;
  font-weight: 700;
}
.legal-content p { margin: 0 0 14px; color: var(--text-soft); }
.legal-content strong { color: var(--primary); }
.legal-content ul, .legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--text-soft);
}
.legal-content li { margin-bottom: 6px; }

/* Platzhalter-Box */
.placeholder {
  background: rgba(232, 127, 31, 0.08);
  border: 2px dashed var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 16px 0;
  color: var(--accent-dark);
}
.placeholder strong { color: var(--accent-dark); display: block; margin-bottom: 6px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.placeholder ul { color: var(--text-soft); }

/* Hinweis-Box */
.info-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 0.95rem;
  line-height: 1.65;
}
.info-box strong { color: var(--accent-dark); }

/* === FOOTER === */
.legal-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 36px 0 24px;
  margin-top: 64px;
  font-size: 0.9rem;
}
.legal-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.legal-footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.legal-footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
}
.legal-footer-nav a:hover { color: var(--accent); }
.legal-footer-nav a.current {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.legal-footer-brand {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
}
.legal-footer-brand strong { color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .legal-header-inner { flex-wrap: wrap; }
  .legal-header a.home-link { width: 100%; text-align: center; margin: 8px 0 0; }
  .legal-content { padding: 32px 18px 48px; }
  .legal-content h2 { font-size: 1.3rem; }
  .legal-footer-nav { flex-direction: column; gap: 12px; text-align: center; }
}
