.terms-page {
    --terms-red: var(--brand-primary, #ff3b30);
    --terms-ink: #142033;
    --terms-muted: #687386;
    --terms-line: rgba(17, 17, 17, 0.09);
    --terms-soft: #fff4f2;
    background: #fffdfa;
    color: var(--terms-ink);
    font-family: var(--font-display, "Manrope", sans-serif);
    overflow: hidden;
}

.terms-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    isolation: isolate;
    color: #fff;
    overflow: hidden;
}

.terms-hero-img,
.terms-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.terms-hero-img {
    z-index: -3;
    object-fit: cover;
    object-position: center;
}

.terms-hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(6, 15, 24, 0.86) 0%, rgba(6, 15, 24, 0.56) 38%, rgba(6, 15, 24, 0.12) 76%),
        linear-gradient(180deg, rgba(6, 15, 24, 0.2), rgba(6, 15, 24, 0.48));
}

.terms-hero-content,
.terms-content {
    width: min(100% - 36px, 1120px);
    margin-inline: auto;
}

.terms-hero-content {
    padding: 130px 0 98px;
}

.terms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 800;
}

.terms-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.terms-breadcrumb span:last-child {
    color: var(--terms-red);
}

.terms-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-serif, "Merriweather", Georgia, "Times New Roman", Times, serif);
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
}

.terms-hero p {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.65;
}

.terms-content {
    padding: 56px 0 70px;
}

.terms-intro {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--terms-line);
}

.terms-intro-icon,
.terms-item-icon,
.terms-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--terms-soft);
    color: var(--terms-red);
    flex: 0 0 auto;
}

.terms-intro-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
}

.terms-intro h2,
.terms-help h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 900;
    color: var(--terms-ink);
}

.terms-intro p,
.terms-help p {
    max-width: 780px;
    margin: 0;
    color: var(--terms-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.terms-list {
    display: grid;
    gap: 0;
    margin-top: 22px;
}

.terms-item {
    border-bottom: 1px solid var(--terms-line);
}

.terms-item summary {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    gap: 20px;
    align-items: center;
    min-height: 74px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
}

.terms-item summary::-webkit-details-marker {
    display: none;
}

.terms-item-icon {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
}

.terms-item-copy {
    display: grid;
    gap: 5px;
}

.terms-item-copy strong {
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    color: #111827;
}

.terms-item-copy span,
.terms-item p {
    color: var(--terms-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-chevron {
    color: #1f2937;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.terms-item[open] .terms-chevron {
    transform: rotate(180deg);
}

.terms-item p {
    margin: -4px 48px 20px 74px;
}

.terms-help {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 46px;
    padding: 26px 34px;
    background: #f7f8fa;
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 18px 55px rgba(17, 17, 17, 0.06);
}

.terms-help-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
}

.terms-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border: 1.5px solid var(--terms-red);
    border-radius: 999px;
    color: var(--terms-red);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.terms-help a:hover {
    background: var(--terms-red);
    color: #fff;
    transform: translateY(-2px);
}

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

    .terms-hero-content {
        padding: 120px 0 78px;
    }

    .terms-help {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .terms-help a {
        grid-column: 2;
        justify-self: start;
    }
}

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

    .terms-hero-content,
    .terms-content {
        width: min(100% - 28px, 1120px);
    }

    .terms-hero-content {
        padding: 112px 0 64px;
    }

    .terms-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.1rem);
    }

    .terms-hero p {
        margin-top: 18px;
        font-size: 0.96rem;
    }

    .terms-content {
        padding: 42px 0 56px;
    }

    .terms-intro,
    .terms-item summary,
    .terms-help {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }

    .terms-intro-icon,
    .terms-item-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .terms-chevron {
        grid-column: 2;
        justify-self: start;
    }

    .terms-item p {
        margin: -2px 0 18px 58px;
    }

    .terms-help {
        padding: 22px 18px;
    }

    .terms-help-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .terms-help a {
        grid-column: 1 / -1;
        width: 100%;
    }
}
