main[data-page="legal"] {
    min-width: 0;
}

.legal-document {
    width: 100%;
    max-width: 960px;
    padding-block: clamp(7.5rem, 12vw, 10rem) clamp(4.5rem, 8vw, 7rem);
    padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.legal-document > h1 {
    max-width: 18ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.legal-document > h2 {
    margin-top: clamp(2.75rem, 6vw, 4.25rem);
    margin-bottom: 1rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.legal-document > h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    line-height: 1.3;
}

.legal-document > p,
.legal-document > ul,
.legal-document > ol {
    margin-top: 0;
    margin-bottom: 1.1rem;
}

.legal-document > p,
.legal-document li {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.legal-document > ul,
.legal-document > ol {
    padding-inline-start: 1.5rem;
}

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

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

.legal-document li {
    margin-bottom: 0.65rem;
    padding-inline-start: 0.25rem;
}

.legal-document a {
    color: #c084fc;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.legal-document a:hover,
.legal-document a:focus-visible {
    color: #d8b4fe;
    text-decoration-thickness: 2px;
}

:root[data-theme="light"] .legal-document a {
    color: #6d28d9;
}

:root[data-theme="light"] .legal-document a:hover,
:root[data-theme="light"] .legal-document a:focus-visible {
    color: #5b21b6;
}

.legal-document strong {
    color: var(--heading-color, var(--text));
}

@media (max-width: 600px) {
    .legal-document {
        padding-block-start: 7.5rem;
        padding-block-end: 4rem;
        padding-inline: 1.25rem;
    }

    .legal-document > h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.1;
    }

    .legal-document > h2 {
        margin-top: 2.5rem;
    }

    .legal-document > p,
    .legal-document li {
        font-size: 0.96rem;
        line-height: 1.75;
    }
}
