.terms-page {
    --terms-ink: #242033;
    --terms-muted: #716d7d;
    --terms-line: #e9e5ef;
    --terms-purple: #8058d5;
    --terms-lilac: #f5f1ff;
    position: relative;
    width: 100%;
    padding: clamp(64px, 7vw, 108px) 0 clamp(80px, 9vw, 132px);
    color: var(--terms-ink);
    background: #faf9fc;
}

.terms-page__container {
    width: min(90.625em, calc(100% - 40px));
}

.terms-page__header {
    width: 100%;
    max-width: 950px;
    margin-bottom: clamp(38px, 5vw, 64px);
}

.terms-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--terms-purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.terms-page__eyebrow::before {
    width: 30px;
    height: 2px;
    content: "";
    border-radius: 2px;
    background: #ff481f;
}

.terms-page__header h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.terms-page__header h1 small {
    font-size: .58em;
    letter-spacing: -.02em;
}

.terms-page__header > p {
    margin: 20px 0 0;
    color: var(--terms-muted);
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.6;
}

.terms-page__updated {
    display: inline-flex;
    margin-top: 20px;
    padding: 8px 13px;
    color: var(--terms-purple);
    border-radius: 100px;
    background: var(--terms-lilac);
    font-size: 13px;
    font-weight: 800;
}

.terms-page__layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
    width: 100%;
}

.terms-provider {
    position: sticky;
    top: 24px;
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--terms-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(56, 43, 83, .06);
}

.terms-provider__label {
    margin: 0 0 8px;
    color: var(--terms-purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.terms-provider h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
}

.terms-provider > p:not(.terms-provider__label),
.terms-provider address {
    margin: 0;
    color: var(--terms-muted);
    font-size: 15px;
    font-style: normal;
    line-height: 1.65;
}

.terms-provider address {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--terms-line);
}

.terms-provider__contact {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.terms-provider__contact a {
    color: var(--terms-purple);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.terms-provider__contact a span {
    color: var(--terms-muted);
    font-weight: 700;
}

.terms-provider__contact a:hover,
.terms-provider__contact a:focus-visible {
    color: #ff481f;
}

.terms-content {
    min-width: 0;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid var(--terms-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(56, 43, 83, .06);
}

.terms-section {
    scroll-margin-top: 24px;
}

.terms-section + .terms-section {
    margin-top: clamp(34px, 5vw, 54px);
    padding-top: clamp(34px, 5vw, 54px);
    border-top: 1px solid var(--terms-line);
}

.terms-section h2 {
    margin: 0 0 24px;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.terms-section h2 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    margin-right: 8px;
    padding: 7px 10px;
    color: var(--terms-purple);
    border-radius: 11px;
    background: var(--terms-lilac);
    font-size: 14px;
    letter-spacing: 0;
    vertical-align: 4px;
}

.terms-section p,
.terms-section li {
    color: #514d5d;
    font-size: 16px;
    line-height: 1.75;
}

.terms-section p {
    margin: 0;
}

.terms-section p + p,
.terms-section ul + p,
.terms-section .terms-rates + p {
    margin-top: 16px;
}

.terms-section ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.terms-section li {
    position: relative;
    padding-left: 18px;
}

.terms-section li::before {
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: var(--terms-purple);
}

.terms-section strong {
    color: var(--terms-ink);
    font-weight: 850;
}

.terms-rates {
    margin: 18px 0 22px;
    overflow: hidden;
    border: 1px solid var(--terms-line);
    border-radius: 16px;
    background: #fcfbff;
}

.terms-rates > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    color: #514d5d;
    font-size: 15px;
    line-height: 1.45;
}

.terms-rates > div + div {
    border-top: 1px solid var(--terms-line);
}

.terms-rates strong {
    flex: 0 0 auto;
    color: var(--terms-purple);
}

@media (max-width: 900px) {
    .terms-page {
        padding-top: calc(18vw + 34px);
    }

    .terms-page__layout {
        grid-template-columns: 1fr;
    }

    .terms-provider {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 28px;
        width: 100%;
    }

    .terms-provider__label,
    .terms-provider h2 {
        grid-column: 1 / -1;
    }

    .terms-provider address {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .terms-provider__contact {
        margin: 0;
    }
}

@media (max-width: 680px) {
    .terms-page__container {
        width: calc(100% - 40px);
    }

    .terms-page__header h1 small {
        display: block;
        margin-top: 7px;
    }

    .terms-provider {
        display: block;
        padding: 24px;
    }

    .terms-provider address,
    .terms-provider__contact {
        margin-top: 17px;
        padding-top: 17px;
        border-top: 1px solid var(--terms-line);
    }

    .terms-content {
        padding: 24px;
        border-radius: 22px;
    }

    .terms-section ul {
        grid-template-columns: 1fr;
    }

    .terms-section h2 span {
        display: flex;
        width: max-content;
        margin: 0 0 10px;
    }
}

@media (max-width: 480px) {
    .terms-page__container {
        width: calc(100% - 32px);
    }

    .terms-page__header h1 {
        font-size: clamp(30px, 9vw, 36px);
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .terms-content,
    .terms-provider {
        padding: 20px;
        border-radius: 18px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 15px;
        line-height: 1.7;
    }

    .terms-section h2 {
        font-size: 21px;
        overflow-wrap: normal;
        hyphens: none;
    }

    .terms-rates > div {
        align-items: flex-start;
        padding: 13px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-section {
        scroll-behavior: auto;
    }
}
