/* Privacy-page layout layered on top of the supplied NXT stylesheet. */
.legal-page main {
    overflow: visible;
}

.legal-page .site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #ecece7;
    backdrop-filter: blur(16px);
}

.legal-hero {
    max-width: 1380px;
    min-height: 440px;
    margin: 0 auto 42px;
    padding: 70px 7%;
    border-radius: 34px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.legal-hero>div:first-child {
    position: relative;
    z-index: 2;
}

.legal-hero>div:first-child>span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .18em;
}

.legal-hero h1 {
    max-width: 760px;
    margin: 24px 0 28px;
    font-size: clamp(4.2rem, 8vw, 7.4rem);
    font-weight: 950;
    line-height: .82;
    letter-spacing: -.07em;
}

.legal-hero p {
    max-width: 600px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.legal-mark {
    width: 360px;
    height: 230px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transform: rotate(-8deg);
}

.legal-mark::before,
.legal-mark::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
}

.legal-mark::before {
    inset: 25px -35px;
}

.legal-mark::after {
    inset: 55px -70px;
}

.legal-mark .logo-shell {
    position: relative;
    z-index: 2;
}

.legal-mark .logo-shell img {
    width: 190px;
}

.legal-layout {
    max-width: 1180px;
    margin: 0 auto 100px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 128px);
    overflow: auto;
    padding: 26px;
    border: 1px solid #e4e4dd;
    border-radius: 22px;
    background: var(--cream);
    font-size: 13px;
}

.legal-toc>strong {
    display: block;
    margin-bottom: 17px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin: 0 0 10px;
}

.legal-toc ul ul {
    display: none;
}

.legal-toc a {
    color: #5d5d58;
    line-height: 1.35;
}

.legal-toc a:hover,
.legal-toc a:focus {
    color: #000;
    text-decoration: underline;
}

.legal-content {
    min-width: 0;
    font-size: 17px;
    line-height: 1.78;
}

.legal-content h2 {
    margin: 72px 0 24px;
    padding-top: 8px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 920;
    line-height: 1;
    letter-spacing: -.045em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin: 38px 0 16px;
    font-size: 23px;
    font-weight: 850;
}

.legal-content p,
.legal-content li {
    color: #343430;
}

.legal-content p {
    margin: 0 0 22px;
}

.legal-content ul {
    margin: 0 0 30px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.legal-content li::marker {
    color: var(--green);
}

.legal-content strong {
    color: #000;
}

.legal-content a {
    color: #267a19;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content table {
    width: 100%;
    margin: 30px 0 40px;
    border: 1px solid #deded8;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
    overflow: hidden;
}

.legal-content th,
.legal-content td {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e5df;
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    background: #0a0a0a;
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
}

.legal-content tr:last-child td {
    border-bottom: 0;
}

.legal-content td:first-child {
    width: 28%;
    font-weight: 780;
}

@media (max-width: 900px) {
    .legal-hero {
        min-height: 390px;
        margin: 0 16px 32px;
        padding: 55px 30px;
    }

    .legal-mark {
        position: absolute;
        right: -110px;
        bottom: -60px;
        opacity: .28;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .legal-toc {
        position: relative;
        top: auto;
        max-height: none;
    }

    .legal-content h2 {
        margin-top: 54px;
    }
}

@media (max-width: 620px) {
    .legal-hero h1 {
        font-size: 3.7rem;
    }

    .legal-hero p,
    .legal-content {
        font-size: 16px;
    }

    .legal-content table,
    .legal-content tbody,
    .legal-content tr,
    .legal-content th,
    .legal-content td {
        display: block;
    }

    .legal-content thead {
        display: none;
    }

    .legal-content tr {
        border-bottom: 1px solid #deded8;
    }

    .legal-content td {
        width: 100%;
        border: 0;
    }

    .legal-content td:first-child {
        width: 100%;
        background: #f3f3ef;
    }
}
