/* ==========================================================================
   TERMS OF SERVICE
   ========================================================================== */

.terms-hero {
    display: grid;
    min-height: clamp(24rem, 45vw, 34rem);
    place-items: center;
    color: var(--white);
    background: var(--violet);
    text-align: center;
}

.terms-hero__inner {
    max-width: 58rem;
    margin-inline: auto;
    padding-block: clamp(5rem, 9vw, 7.5rem);
}

.terms-hero__kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, .9);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}


.terms-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
}

.terms-hero__sub {
    max-width: 46rem;
    margin: 1.3rem auto 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.65;
}

.terms-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem 1.3rem;
    margin-top: 1.65rem;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
}

.terms-layout {
    display: grid;
    grid-template-columns: minmax(17rem, 20.5rem) minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
}

.terms-side {
    position: sticky;
    top: 8rem;
    min-width: 0;
}

.terms-side .kicker {
    margin-bottom: 1rem;
}

.terms-side__title {
    max-width: 19rem;
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.terms-side__sub {
    margin: 1rem 0 0;
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.6;
}

.terms-nav {
    display: grid;
    gap: .2rem;
    margin-top: 1.65rem;
    padding-top: 1rem;
    border-top: 1px solid #e5dfec;
}

.terms-nav a {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.terms-nav a.is-active,
.terms-nav a[aria-current="true"] {
    color: var(--violet);
    font-weight: 700;
    transform: none;
}


.terms-nav a:hover,
.terms-nav a:focus-visible {
    color: var(--violet-deep);
    transform: translateX(3px);
}

.terms-help {
    margin-top: 1.6rem;
    padding: 1.35rem;
    color: #fff;
    background: var(--ink);
    border-radius: 1rem;
}

.terms-help__title {
    margin: 0;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
}

.terms-help__text {
    margin: .5rem 0 0;
    color: var(--body-on-dark);
    font-size: .84rem;
    line-height: 1.55;
}

.terms-help__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .95rem;
    padding: .7rem .9rem;
    color: #fff;
    background: var(--violet);
    border-radius: .6rem;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.terms-help__link svg {
    transition: transform .18s ease;
}

.terms-help__link:hover svg {
    transform: translateX(3px);
}

.terms-copy {
    min-width: 0;
}

.terms-intro {
    padding: 1.6rem 0 2rem;
    border-top: 1px solid #ded7e7;
    border-bottom: 1px solid #ded7e7;
}

.terms-intro p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.terms-intro p + p {
    margin-top: .9rem;
}

.terms-copy a {
    color: var(--violet-deep);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.terms-section {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid #e1dbe9;
    scroll-margin-top: 8rem;
}

.terms-section__num {
    padding-top: .18rem;
    color: var(--violet);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.terms-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.terms-section p {
    margin: .8rem 0 0;
    color: var(--ink-soft);
    font-size: .97rem;
    line-height: 1.75;
}

.terms-section ul {
    display: grid;
    gap: .55rem;
    margin: .9rem 0 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
}

.terms-section li {
    padding-left: .2rem;
    font-size: .95rem;
    line-height: 1.65;
}

.terms-section li::marker {
    color: var(--violet);
}

.terms-section--contact {
    border-bottom: 0;
}

@media (max-width: 991.98px) {
    .terms-layout {
        grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
        gap: 3rem;
    }

    .terms-side {
        top: 7rem;
    }

    .terms-nav {
        gap: .1rem;
    }

    .terms-nav a {
        min-height: 2rem;
        font-size: .78rem;
    }
}

@media (max-width: 767.98px) {
    .terms-hero {
        min-height: auto;
    }

    .terms-hero__inner {
        padding-block: 5rem;
    }

    .terms-hero__title {
        font-size: clamp(2.8rem, 12vw, 4.3rem);
    }

    .terms-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .terms-side {
        position: static;
    }

    .terms-side__title,
    .terms-side__sub {
        max-width: 34rem;
    }

    .terms-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem 1rem;
    }

    .terms-help {
        max-width: none;
    }

    .terms-section {
        grid-template-columns: 2.2rem minmax(0, 1fr);
        gap: .85rem;
        padding: 1.9rem 0;
    }

    .terms-section p {
        font-size: .94rem;
    }
}

@media (max-width: 479.98px) {
    .terms-hero__inner {
        padding-block: 4.25rem;
    }

    .terms-hero__title {
        font-size: clamp(2.6rem, 13vw, 3.6rem);
    }

    .terms-hero__sub {
        font-size: .95rem;
    }

    .terms-hero__meta {
        flex-direction: column;
        gap: .3rem;
    }

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

    .terms-section {
        grid-template-columns: 1fr;
        gap: .5rem;
        padding: 1.7rem 0;
    }

    .terms-section__num {
        padding-top: 0;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .terms-section p,
    .terms-section li {
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-nav a,
    .terms-help__link svg {
        transition: none !important;
    }
}
