/*
 * Styling for the legal pages (privacy statement, general terms).
 *
 * These pages are new, so they get their own small stylesheet built from the
 * site's existing design tokens: the same white band, radius and padding as the
 * other content sections, the same Satoshi type scale, and the same green
 * bullet the service pages use.
 */

.section-legal {
    background-color: var(--_variable-collection---white);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 80px 80px 120px;
}

.legal-document {
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
    max-width: 800px;
}

.legal-document__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.legal-document .heading-m {
    margin: 0;
}

/* Body copy */
.legal-document .w-richtext {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    color: var(--_variable-collection---black--600);
    font-family: Satoshi, Impact, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 155%;
}

.legal-document .w-richtext > p {
    margin: 0;
}

.legal-document .w-richtext a {
    color: var(--_variable-collection---green--700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-document .w-richtext a:hover {
    color: var(--_variable-collection---green--900);
}

/* Lists */
.legal-document .w-richtext ul,
.legal-document .w-richtext ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible;
}

.legal-document .w-richtext li {
    position: relative;
    padding-left: 26px;
}

/* Same bullet the service pages use. */
.legal-document .w-richtext ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 11px;
    height: 11px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'%2371BF9A'%20d%3D'M8.23079%200.330785L22.5698%2010.0734C23.8626%2010.9517%2023.4922%2013.0525%2021.8896%2013.9308L4.12253%2023.6692C2.45856%2024.5813%200.726815%2023.4995%201.03621%2021.7413L4.46431%202.2603C4.77384%200.50138%206.88792%20-0.581618%208.23079%200.330785Z'/%3E%3C/svg%3E");
}

.legal-document .w-richtext ul.legal-list--contact > li::before {
    top: 7px;
    width: 12px;
    height: 12px;
}

/* Lettered clauses (a. b. c. ...) */
.legal-document .w-richtext ol.legal-list--alpha {
    counter-reset: legal-alpha;
}

.legal-document .w-richtext ol.legal-list--alpha > li {
    counter-increment: legal-alpha;
}

.legal-document .w-richtext ol.legal-list--alpha > li::before {
    content: counter(legal-alpha, lower-alpha) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--_variable-collection---black--900);
}

/* Tables */
.legal-document .legal-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.legal-document .legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.legal-document .legal-table th,
.legal-document .legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 16px;
    border-bottom: 1px solid var(--_variable-collection---grey--300);
}

.legal-document .legal-table th {
    background-color: var(--_variable-collection---grey--100);
    color: var(--_variable-collection---black--900);
    font-weight: 700;
}

.legal-document .legal-table td {
    color: var(--_variable-collection---black--600);
}

.legal-document .legal-table tbody tr:last-child td {
    border-bottom: 0;
}

@media screen and (max-width: 991px) {
    .section-legal {
        padding: 56px 5vw 80px;
    }

    .legal-document {
        gap: 40px;
    }
}

@media screen and (max-width: 479px) {
    .section-legal {
        padding: 40px 5vw 64px;
    }

    .legal-document .w-richtext {
        font-size: 15px;
    }

    .legal-document .legal-table th,
    .legal-document .legal-table td {
        padding: 10px 12px;
    }
}
