/* The rich text of a legal page (CMS) — the tags LegalPageHtmlSanitizer keeps.
   One stylesheet for every place the text appears: the public page (LegalPage/Show),
   the acceptance page (LegalAcceptance), the admin editor, and the terms modal of
   the Home adaptation request form. Tokens fall back to the landing values, so the
   file needs no landing.css inside the app layout. */

/* The admin editor loads this stylesheet and puts this class on its content, so
   these rules ARE the editor's look too: everything is styled from plain
   elements, never from classes the admin would have to know. */
.landing-legal-content {
    font-family: var(--ds-font-sans, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ls-ink-soft, #475569);
}
.landing-legal-content :is(h2, h3, h4, h5, h6) {
    color: var(--ls-ink, #0f172a);
    font-weight: 700;
    letter-spacing: -0.01em;
    /* Explicit: inside the app Bootstrap's h1–h6 line-height (1.2) would win. */
    line-height: 1.6;
    margin: 1.75rem 0 0.6rem;
}
.landing-legal-content h2 { font-size: 1.05rem; }
.landing-legal-content h3 { font-size: 1rem; }
.landing-legal-content :is(h4, h5, h6) { font-size: 0.95rem; }
.landing-legal-content :is(p, ul, ol, table, blockquote) { margin: 0 0 0.85rem; }
.landing-legal-content > :first-child,
.landing-legal-content hr + * { margin-top: 0; }
.landing-legal-content > :last-child { margin-bottom: 0; }
/* The grey line between sections. */
.landing-legal-content hr { border: 0; border-top: 1px solid var(--ls-border, rgba(15, 23, 42, 0.08)); margin: 1.75rem 0; }
/* The global `a { color: inherit; text-decoration: none }` would hide the
   contact links — an imprint must show them as reachable. */
.landing-legal-content a { color: var(--ls-accent, #2563eb); text-decoration: underline; text-underline-offset: 0.15em; }
/* A two-column table is a label/value list (contact, register): no grid lines,
   label column in bold. */
.landing-legal-content table { border-collapse: collapse; width: auto; }
.landing-legal-content :is(th, td) { border: 0; padding: 0.15rem 1.25rem 0.15rem 0; text-align: left; vertical-align: top; }
.landing-legal-content :is(th, td):first-child { min-width: 9rem; color: var(--ls-ink, #0f172a); font-weight: 600; }

@media (max-width: 480px) {
    .landing-legal-content :is(tr, th, td) { display: block; }
    .landing-legal-content td + td { padding-bottom: 0.6rem; }
}
