body {
    background-color: rgb(var(--mw-bg-color-default));
}

.legal-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.legal-text {
    margin-top: 7rem;
    margin-bottom: 4.5rem;
    max-width: 60rem;
    height: calc(100vh - 10rem);
    overflow-y: auto;
    color: rgb(var(--mw-txt-color-grey));
}

.legal-text h1, .legal-text h2 {
    overflow-wrap: break-word;
    hyphens: auto;
    font-weight: bold;
    line-height: 1.15;
}

.legal-text h1 {
    font-size: 2.125rem;
    letter-spacing: -0.0625em;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.legal-text h2 {
    font-size: 1.75rem;
    letter-spacing: -0.05em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-text p {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.legal-text a {
    color: inherit;
}

.legal-text ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 3rem;
}


@media (max-width: 90rem) {
    .legal-text {
        margin-left: 15rem;
    }

}

@media (max-width: 50rem) {
    .legal-text {
        margin-top: 4rem;
        margin-left: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .legal-text h1, .legal-text h2 {
        line-height: 1;
    }
    .legal-text h1 {
        font-size: 1.7rem;
    }
    .legal-text h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .legal-text p {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
    .legal-text ul {
        font-size: 0.9rem;
    }
}

.right-top-overlay, .right-bottom-overlay {
    background-color: rgb(var(--mw-bg-color-default));
}
