/**
 * Gemeinsame Lesbarkeit für AGB, Datenschutz, Widerruf, Produktbestimmungen.
 * Seiten nutzen: <div class="legal-box legal-doc"> … </div>
 */
.legal-body:has(.legal-box.legal-doc) {
  max-width: min(1040px, calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.legal-body .legal-box.legal-doc {
  text-align: left;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.0625rem;
  line-height: 1.78;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.legal-body .legal-box.legal-doc h5 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-body .legal-box.legal-doc p {
  margin: 0 0 1.15em;
}

.legal-body .legal-box.legal-doc p:last-child {
  margin-bottom: 0;
}

/* Zwischenüberschriften wie „1.5 …“ oder „(a) Prepaid …“ */
.legal-body .legal-box.legal-doc .legal-clause {
  margin-bottom: 1.2em;
}

.legal-body .legal-box.legal-doc .legal-clause > strong:first-child {
  display: block;
  margin-bottom: 0.4em;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  line-height: 1.35;
}

.legal-body .legal-box.legal-doc .legal-clause.legal-warn {
  padding: 0.9rem 1rem 0.95rem 1rem;
  margin-top: 1.25em;
  margin-bottom: 1.35em;
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.09);
  border-radius: 0 10px 10px 0;
}

.legal-body .legal-box.legal-doc .legal-clause.legal-warn > strong:first-child {
  color: #b45309;
}

/* Datenschutz & ähnliche: echte Überschriften statt Mini-Text */
.legal-body .legal-box.legal-doc h2,
.legal-body .legal-box.legal-doc h3 {
  font-size: 1.125rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  margin: 1.65rem 0 0.55rem !important;
  padding: 0 !important;
  color: #0f172a !important;
}

.legal-body .legal-box.legal-doc h2:first-child,
.legal-body .legal-box.legal-doc section > h2:first-of-type {
  margin-top: 0.35rem !important;
}

.legal-body .legal-box.legal-doc ul,
.legal-body .legal-box.legal-doc ol {
  margin: 0.5em 0 1.15em;
  padding-left: 1.35em;
}

.legal-body .legal-box.legal-doc li {
  margin-bottom: 0.35em;
}

@media (max-width: 768px) {
  .legal-body .legal-box.legal-doc {
    font-size: 1rem;
    line-height: 1.72;
    padding: 1.25rem 1.1rem;
  }
}
