/* 7C3B visual r1: original 7C2 legal presentation, scoped to legal pages only. */
.legal-page .legal-main .shead > div { min-width:0; max-width:100%; }
.legal-page .legal-main .shead > .lede { min-width:0; }
.legal-page .legal-main h1 { overflow-wrap:anywhere; }
@media (min-width:761px) {
  .legal-page .legal-main .shead > div { min-width:min-content; }
  .legal-page .legal-main .shead h1 { overflow-wrap:normal; }
}
/* r2: only the two DE compound titles. No font-size or desktop layout change.
   A soft hyphen marks the compound boundary; no automatic dictionary is needed. */
.legal-page .legal-main h1 .legal-de-compound { -webkit-hyphens:none; hyphens:none; }
@media screen and (max-width:430px) {
  html[lang="de"] .legal-page[data-legal-kind="terms"] .legal-main .shead h1,
  html[lang="de"] .legal-page[data-legal-kind="privacy"] .legal-main .shead h1 { overflow-wrap:normal; word-break:normal; }
  .legal-page .legal-main h1 .legal-de-compound { display:inline-block; max-width:100%; -webkit-hyphens:manual; hyphens:manual; }
}
.legal-page .legal-copy { margin:0; min-width:0; max-width:70ch; overflow-wrap:anywhere; }
.legal-page .legal-draft { max-width:70ch; color:var(--ink); border:1px solid var(--line-soft); background:var(--paper-2); border-radius:var(--r); padding:12px 16px; margin:0 0 24px; font-weight:600; overflow-wrap:anywhere; }
.legal-page .legal-table-wrap { max-width:100%; margin:0 0 1.5em; }
.legal-page .legal-copy table { border-collapse:collapse; table-layout:fixed; width:100%; font-size:.94rem; line-height:1.65; }
.legal-page .legal-copy th,.legal-page .legal-copy td { border:1px solid var(--line-soft); padding:10px 12px; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.legal-page .legal-copy th { color:var(--ink); background:var(--paper-2); font-weight:600; }
.legal-page .legal-copy td { color:var(--ink-2); }
.legal-page .legal-copy h3 { margin:1.5em 0 .65em; overflow-wrap:anywhere; }
.legal-page .legal-copy a { color:var(--gold-text); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.legal-page .legal-copy code { font-size:.9em; overflow-wrap:anywhere; }
.legal-page .legal-copy .btn:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
/* Original 7C2 card width and spacing; all source labels/values remain in the DOM.
   The generic column labels are retained for assistive technology, not drawn as
   a table header above the existing infocard / kv presentation. */
.legal-page .legal-provider { max-width:480px; margin:22px 0 26px; }
.legal-page .legal-provider table,.legal-page .legal-provider tbody { display:block; width:100%; font-size:inherit; line-height:inherit; }
.legal-page .legal-provider td { display:block; border:0; padding:0; color:inherit; }
.legal-page .legal-provider .k { font-size:.72rem; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-3); }
.legal-page .legal-provider .v { font-size:1rem; color:var(--ink); }
.legal-page .legal-card-columns { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media print {
  .legal-page .legal-main section { padding:0; }
  .legal-page .legal-main .shead { display:block; }
  .legal-page .legal-main .wrap { max-width:none; width:100%; padding:0; }
  .legal-page .legal-copy,.legal-page .legal-draft { max-width:none; }
  .legal-page .legal-draft { display:block!important; color:#000; border:1px solid #000; background:#fff; }
  .legal-page .legal-copy p,.legal-page .legal-copy td,.legal-page .legal-copy th,.legal-page .legal-copy a { color:#000; }
  .legal-page .legal-copy h2,.legal-page .legal-copy h3 { break-after:avoid; }
  .legal-page .legal-copy tr { break-inside:avoid; }
  .legal-page .legal-copy table { font-size:10pt; }
  .legal-page .legal-copy thead { display:table-header-group; }
  .legal-page .legal-withdrawal-form { break-before:page; }
  .legal-page .legal-withdrawal-table td:last-child { font-size:9pt; }
}

/* Legal contents: full-width local card; explicit intact chapter groups.
   No automatic multicolumn flow or changes to the existing legal presentation. */
.legal-page .legal-toc { display:block; width:100%; max-width:none; margin:0 0 40px; padding:28px 32px 24px; border:1px solid var(--line); border-radius:var(--r); background:var(--card); color:var(--ink); font-size:1rem; font-weight:400; }
.legal-page .legal-toc-title { margin:0 0 20px; font-family:"EB Garamond",Georgia,serif; font-size:2rem; font-weight:400; line-height:1.15; letter-spacing:-.015em; color:var(--ink); }
.legal-page .legal-toc-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.legal-page .legal-toc ol { list-style:none; padding:0; margin:0; min-width:0; }
.legal-page .legal-toc-column > li { padding:6px 0; border-top:1px solid var(--line-soft); }
.legal-page .legal-toc-column:first-child > li:first-child { border-top:0; padding-top:0; }
.legal-page .legal-toc-column > li > a { color:var(--ink); font-weight:600; }
.legal-page .legal-toc ol ol { margin:0 0 4px 2px; padding-left:16px; border-left:1px solid var(--line); }
.legal-page .legal-toc ol ol a { color:var(--ink-2); font-size:.9rem; font-weight:400; }
.legal-page .legal-toc a { display:block; min-height:44px; padding:9px 0; line-height:1.55; overflow-wrap:break-word; word-break:normal; text-decoration:none; text-underline-offset:4px; text-decoration-thickness:1px; }
.legal-page .legal-toc a:hover,.legal-page .legal-toc a:focus-visible { color:var(--ink); text-decoration:underline; text-decoration-color:var(--gold); }
@media (min-width:960px) {
  .legal-page .legal-toc-columns { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:64px; align-items:start; }
  .legal-page .legal-toc-column:nth-child(2) > li:first-child { border-top:0; padding-top:0; }
}
@media (max-width:599px) {
  .legal-page .legal-toc { padding:22px 18px 16px; margin-bottom:32px; }
  .legal-page .legal-toc-title { font-size:1.75rem; margin-bottom:16px; }
}
.legal-page .legal-toc a:focus-visible,
.legal-page .legal-copy :is(h2,h3)[id]:focus-visible { outline:2px solid var(--gold); outline-offset:3px; border-radius:4px; }
/* Reserve the full uncollapsed header height even on mobile, plus a safe gap.
   The preview ribbon scrolls away; env() accounts for a device's safe inset. */
.legal-page .legal-copy :is(h2,h3)[id] { scroll-margin-top:calc(var(--hdr,88px) + 24px + env(safe-area-inset-top,0px)); }
@media print {
  .legal-page .legal-toc { display:none!important; }
  .legal-page .legal-copy :is(h2,h3)[id] { scroll-margin-top:0; outline:none; }
}
