@import url("./base.css");
@import url("./footer.css");
@import url("./shared.css");

body.legal-page header {
    position: relative;
}

body.agb-page .header-inner,
body.datenschutz-page .header-inner {
    padding-bottom: 2rem;
}

body.legal-page .legal-main {
    width: min(100% - 48px, 920px);
    margin: 0 auto;
    padding: 3rem 0 5rem !important;
    background: transparent;
}

.legal-document {
    display: block;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border: 1px solid rgba(152, 131, 93, 0.26);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 42px rgba(50, 58, 61, 0.08);
    text-align: left;
    overflow-wrap: break-word;
}

.legal-document h1 {
    margin: 0 0 1rem;
    color: var(--text-main);
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
    text-align: left;
}

.legal-document p,
.legal-document p:first-of-type,
.legal-document li {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.68;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
}

.legal-document p,
.legal-document p:first-of-type {
    max-width: none;
    margin: 0 0 0.95rem;
}

.legal-document > p:first-of-type {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.legal-document__section {
    padding-top: 1.35rem;
    border-top: 1px solid rgba(152, 131, 93, 0.22);
}

.legal-document__section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.legal-document__section + .legal-document__section {
    margin-top: 2.2rem;
}

.legal-document__section h2 {
    margin: 0 0 0.9rem;
    color: var(--text-main);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem);
    font-weight: 400;
    line-height: 1.18;
    text-align: left;
}


.legal-document address {
    color: var(--text-main);
    font-style: normal;
    font-size: 1rem;
    line-height: 1.68;
}

.legal-document b {
    font-weight: 400;
}

.legal-document ul {
    margin: 0.65rem 0 1rem 1.2rem;
    padding: 0;
}

.legal-document li + li {
    margin-top: 0.45rem;
}


@media (max-width: 920px) {
    body.legal-page .legal-main {
        width: min(100% - 32px, 920px);
        padding: 2rem 0 4rem !important;
    }
}

@media (max-width: 640px) {
    body.agb-page .header-inner,
    body.datenschutz-page .header-inner {
        padding-bottom: 0.75rem;
    }

    body.legal-page .legal-main {
        width: min(100% - 24px, 920px);
        padding: 1.5rem 0 3rem !important;
    }

    .legal-document {
        padding: 1.25rem;
        border-radius: 4px;
    }

    .legal-document h1 {
        font-size: clamp(1.85rem, 8vw, 2.25rem);
        line-height: 1.08;
    }

    .legal-document > p:first-of-type {
        margin-bottom: 2rem;
    }

    .legal-document__section {
        padding-top: 1.1rem;
    }

    .legal-document__section + .legal-document__section {
        margin-top: 1.65rem;
    }

    .legal-document__section h2 {
        font-size: clamp(1.28rem, 6vw, 1.55rem);
        line-height: 1.2;
    }


    .legal-document p,
    .legal-document p:first-of-type,
    .legal-document li {
        font-size: 0.96rem !important;
        line-height: 1.62 !important;
    }
}
