/* 13.11.2026 (Z29): the legal pages (generated from legal/*.md by tool/legal/build_legal.dart).
   On top of style.css – same fonts, colours and widths; nothing loaded from elsewhere. */
main.legal .stand { font-size: 14px; margin: 0 0 18px; color: var(--muted); }
main.legal h2 { scroll-margin-top: 16px; }
main.legal h3 { font-size: 16px; margin: 20px 0 4px; scroll-margin-top: 16px; }
main.legal p { margin: 0 0 12px; }
main.legal ul, main.legal ol { padding-left: 22px; margin: 0 0 12px; }
main.legal li { margin: 4px 0; }
main.legal li ul, main.legal li ol { margin: 4px 0 0; }
main.legal a { text-underline-offset: 2px; }
main.legal p a, main.legal li a, main.legal td a, main.legal th a { color: var(--text); }
main.legal a:hover { color: var(--coral); }

/* the table of contents */
.toc { background: var(--bg2); border-radius: 16px; padding: 12px 16px; margin: 0 0 8px; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--text); list-style-position: inside; }
.toc ol { margin: 10px 0 2px; padding-left: 0; list-style: none; columns: 2 260px; column-gap: 24px; }
.toc li { margin: 0 0 6px; font-size: 15px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* the highlighted box (Widerspruchsrecht) */
blockquote.box { margin: 16px 0; padding: 14px 16px 2px; background: var(--bg2); border-radius: 16px; border-left: 4px solid var(--coral); }
blockquote.box p, blockquote.box li { color: var(--text); }

/* tables: a real table on wide screens, one card per row on phones */
.tbl { margin: 8px 0 16px; overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
.tbl thead th { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--line); }
.tbl tbody th { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { background: var(--bg2); border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; }
  .tbl th, .tbl td { border: 0; padding: 2px 0; }
  .tbl tbody th { font-size: 16px; margin-bottom: 2px; }
  .tbl td::before { content: attr(data-label) ": "; color: var(--text); font-weight: 600; }
}

/* 13.11. (vor Deploy 5): lange Wörter/Adressen/Links brechen um – die Seite ist am Handy nie breiter als der Bildschirm */
main.legal { overflow-wrap: anywhere; word-break: normal; min-width: 0; }
main.legal table, main.legal pre { max-width: 100%; }
