/* ============================================
   LEGAL PAGES — Shared styles for Impressum,
   AGB, Datenschutz, Kontakt, FAQ
   Uses design-tokens.css
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base); color: var(--text-primary);
  line-height: 1.5; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Header */
.lg-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.lg-header-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; min-height: 56px;
}
.lg-brand { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.lg-header-nav { display: flex; align-items: center; gap: 8px; }
.lg-header-nav a {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 8px 14px; border-radius: 8px; transition: all 150ms ease;
}
.lg-header-nav a:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.lg-header-cta {
  background: var(--accent); color: #fff !important; font-weight: 600;
  border-radius: 10px; box-shadow: 0 2px 8px rgba(234,106,14,0.2);
}
.lg-header-cta:hover { background: var(--accent-hover); }

/* Main */
.lg-main {
  max-width: 900px; margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Content card */
.lg-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.lg-title {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2;
}
.lg-date {
  font-size: 12px; color: var(--text-tertiary);
  margin-top: 4px;
}

/* Prose content */
.lg-prose {
  margin-top: 28px;
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7;
}
.lg-prose h2 {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 8px;
}
.lg-prose h2:first-child { margin-top: 0; }
.lg-prose h3 {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 6px;
}
.lg-prose p { margin: 8px 0; }
.lg-prose ul, .lg-prose ol {
  padding-left: 20px; margin: 8px 0;
}
.lg-prose li { margin: 4px 0; }
.lg-prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lg-prose a:hover { color: var(--text-primary); }
.lg-prose strong { color: var(--text-primary); font-weight: 600; }

/* Section spacing */
.lg-section { margin-bottom: 24px; }
.lg-section:last-child { margin-bottom: 0; }

/* Form elements */
.lg-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-tertiary); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 6px;
}
.lg-input, .lg-textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px; color: var(--text-primary);
  font-size: 14px; outline: none;
  transition: border-color 150ms ease;
}
.lg-input { height: 46px; }
.lg-textarea { min-height: 140px; resize: vertical; }
.lg-input::placeholder, .lg-textarea::placeholder { color: var(--text-tertiary); }
.lg-input:focus, .lg-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234,106,14,0.1);
}
.lg-submit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff;
  border-radius: 14px; border: none; cursor: pointer;
  transition: all 200ms cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 2px 12px rgba(234,106,14,0.25);
}
.lg-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.lg-submit:active { transform: translateY(0); }

/* FAQ accordion */
.lg-faq-list { display: grid; gap: 10px; margin-top: 24px; }
.lg-faq-item {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-surface-1); overflow: hidden;
  transition: border-color 200ms ease;
}
.lg-faq-item[open] { border-color: rgba(234,106,14,0.2); }
.lg-faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; list-style: none; color: var(--text-primary);
  transition: background 150ms ease;
}
.lg-faq-item summary:hover { background: var(--bg-surface-2); }
.lg-faq-item summary::-webkit-details-marker { display: none; }
.lg-faq-item summary::marker { content: ''; }
.lg-faq-answer {
  padding: 0 20px 16px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.7;
}

/* Toast */
.lg-toast {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 200; width: 94%; max-width: 520px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; text-align: center;
  transition: opacity 300ms ease;
}
.lg-toast.is-error { background: var(--color-danger-soft); color: var(--color-danger); border: 1px solid rgba(239,68,68,0.15); }
.lg-toast.is-success { background: var(--color-success-soft); color: var(--color-success); border: 1px solid rgba(16,185,129,0.15); }
.lg-toast.is-fading { opacity: 0; }

/* Footer */
.lg-footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.lg-footer-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-tertiary);
}
.lg-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.lg-footer-links a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 640px) {
  .lg-main { padding: 28px 16px 80px; }
  .lg-card { padding: 24px; border-radius: 16px; }
  .lg-title { font-size: 24px; }
  .lg-footer-inner { flex-direction: column; text-align: center; }
  .lg-header-nav a:not(.lg-header-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
