/* EchoSeiten Rechtstexte | App-Shell 23.08.2026
   Impressum, Datenschutz, Meldeverfahren und Nutzungsbedingungen nutzen
   denselben öffentlichen EchoSeiten-Header wie der Feed. */

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body.legal-page {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    background: #000;
    color: #f2f2f2;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

body.legal-page *,
body.legal-page *::before,
body.legal-page *::after {
    box-sizing: border-box;
}

body.legal-page #container {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}

/* Der Header selbst kommt zentral aus header_menu.php + public-ui.css. */
body.legal-page main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--echo-header-height, 58px) 0 0;
}

/* Dieselbe 620-px-Mittelachse wie Feed und öffentlicher Header. */
.legal-document {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 34px 16px 90px;
    color: #f2f2f2;
    overflow-wrap: break-word;
    word-break: normal;
}

.legal-document h1,
.legal-document h2,
.legal-document p,
.legal-document li {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.legal-document h1 {
    margin: 0 0 8px;
    font-size: clamp(27px, 7.2vw, 36px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.01em;
    color: #fff;
}

.legal-document__subtitle {
    margin: 0 0 4px;
    max-width: 72ch;
    font-size: 16px;
    line-height: 1.45;
    color: #d0d0d0;
}

.legal-document__stand {
    margin: 0 0 38px;
    font-size: 13px;
    line-height: 1.4;
    color: #9f9f9f;
}

.legal-document h2 {
    margin: 36px 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.legal-document p,
.legal-document li {
    font-size: 16px;
    line-height: 1.65;
    color: #e6e6e6;
}

.legal-document p {
    margin: 0 0 12px;
}

.legal-document ul,
.legal-document ol {
    margin: 8px 0 20px 24px;
    padding: 0;
}

.legal-document ul {
    list-style: disc;
}

.legal-document ol {
    list-style: decimal;
}

.legal-document li {
    margin: 0 0 9px;
    padding-left: 4px;
}

.legal-document a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-document p,
.legal-document li {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

@media screen and (min-width: 640px) {
    .legal-document {
        width: 620px;
        padding: 50px 22px 110px;
        border-right: 1px solid var(--echo-header-border, #2f3336);
        border-left: 1px solid var(--echo-header-border, #2f3336);
    }

    .legal-document h1 {
        font-size: clamp(23px, 3.2vw, 36px);
    }

    .legal-document__stand {
        margin-bottom: 44px;
    }

    .legal-document p,
    .legal-document li {
        font-size: 15.5px;
        line-height: 1.7;
    }
}
