/* ─── legal.css ──────────────────────────────────────────────────────────────
   Shared styles for /datenschutz and /impressum
   ─────────────────────────────────────────────────────────────────────────── */

.legal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  padding: 100px 0 48px;
  color: #fff;
}

.legal-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin: 12px 0 8px;
  line-height: 1.1;
}

.legal-header__meta {
  font-size: 0.875rem;
  opacity: 0.75;
  margin: 0;
}

.legal-header .sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.legal-header .sp-breadcrumb a { color: #fff; text-decoration: none; }
.legal-header .sp-breadcrumb a:hover { text-decoration: underline; }
.legal-header .sp-breadcrumb [data-lucide] { width: 12px; height: 12px; opacity: 0.6; }

/* ─── Body ─── */
.legal-body {
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal-section {
  margin-bottom: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider, rgba(255,255,255,0.08));
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #fff);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #fff);
  margin: 24px 0 8px;
}

.legal-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-l, #4DA3FF);
  margin: 16px 0 6px;
}

.legal-section p,
.legal-section li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted, rgba(255,255,255,0.7));
  margin: 0 0 6px;
}

.legal-section ul { padding-left: 20px; margin: 8px 0 12px; }
.legal-section li { margin-bottom: 4px; }

.legal-section address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted, rgba(255,255,255,0.7));
}

.legal-section a { color: var(--primary-l, #4DA3FF); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* ─── Badge ─── */
.legal-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 8px;
}

.legal-badge--warn {
  background: rgba(255, 159, 10, 0.15);
  color: #FF9F0A;
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.legal-art {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.55;
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── Rights Grid ─── */
.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.legal-right {
  background: var(--bg-light, rgba(255,255,255,0.04));
  border: 1px solid var(--divider, rgba(255,255,255,0.08));
  border-radius: 10px;
  padding: 16px 18px;
}

.legal-right h3 { font-size: 0.875rem; margin: 0 0 6px; }
.legal-right p  { font-size: 0.825rem; margin: 0; line-height: 1.6; }

/* ─── Table ─── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 12px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider, rgba(255,255,255,0.08));
  color: var(--text-muted, rgba(255,255,255,0.7));
  line-height: 1.5;
}

.legal-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text, #fff);
  background: var(--bg-light, rgba(255,255,255,0.04));
}

.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child { font-weight: 500; color: var(--text, #fff); width: 45%; }
.legal-table--compact td { padding: 8px 14px; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .legal-header { padding: 80px 0 36px; }
  .legal-rights-grid { grid-template-columns: 1fr; }
  .legal-table td:first-child { width: 40%; }
}

/* ─── Tab Navigation ─── */
.legal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--divider, rgba(255,255,255,0.08));
}

.legal-tab {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255,255,255,0.6));
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  transition: color .2s, background .2s;
}

.legal-tab:hover {
  color: var(--text, #fff);
  background: var(--bg-light, rgba(255,255,255,0.04));
  text-decoration: none;
}

/* ─── Scope Header (Teil A / Teil B) ─── */
.legal-scope-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-l, #4DA3FF);
  background: var(--bg-light, rgba(255,255,255,0.04));
  border: 1px solid var(--divider, rgba(255,255,255,0.08));
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 18px;
  margin: 32px 0 0;
  scroll-margin-top: 80px;
}

.legal-scope-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}