.legal-document {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 880px;
    color: var(--color-text-regular);
}

.legal-document__title {
    margin-bottom: 4.5rem;
    font-weight: 500;
    font-size: 4.4rem;
    line-height: 114%;
    max-width: 880px;
}

.legal-document__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-bottom: 12px;
    font: var(--text-b4) var(--font-family);
    color: var(--color-text-regular);
}

.legal-document__heading {
    padding-top: 16px;
    font: var(--text-h2) var(--font-family);
    color: var(--color-text-regular);
}

.legal-document__heading--centered {
    text-align: center;
}

.legal-document__heading:first-child,
.legal-document__meta + .legal-document__heading {
    padding-top: 0;
}

.legal-document__subheading,
.legal-document__label,
.legal-document__paragraph,
.legal-document__list-item {
    font: var(--text-b4) var(--font-family);
    color: var(--color-text-regular);
    text-align: justify;
}

.legal-document__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 24px;
}

.legal-document__list-item {
    list-style: disc;
}

.legal-document__list-item::marker {
    color: var(--color-dark-grey);
}

.legal-document__link {
    color: inherit;
    text-decoration: underline dotted var(--color-dark-grey);
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
    overflow-wrap: anywhere;
    transition: color 0.3s ease-in-out;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 0;
    list-style: none;
    font-size: 20px;
}

.legal-links__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    list-style: none;
}

.legal-links__link {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

.legal-links__download {
    font-size: 16px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links__link:hover,
.legal-links__download:hover {
    color: #000;
    text-decoration: underline;
}

@media (hover: hover) {
    .legal-document__link:hover {
        color: var(--color-blue);
    }
}

@media screen and (width < 768px) {
    .legal-document__heading {
        font: var(--text-b1) var(--font-family);
    }
}
