.terms-page {
    overflow: hidden;
    color: var(--iexe-navy, #071a42);
    font-family: var(--font-body, sans-serif);
}

.referral-site-header__container, .terms-hero__container, .terms-document__container {
    width: calc(100% - clamp(32px, 6vw, 96px));
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto;
}

.terms-hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
}

.terms-hero__media, .terms-hero__media::after {
    position: absolute;
    inset: 0;
}

.terms-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.terms-hero__media::after {
    content: "";
    background: linear-gradient(90deg, rgba(2, 16, 54, .94) 0%, rgba(3, 25, 67, .74) 52%, rgba(3, 25, 67, .18) 100%), linear-gradient(0deg, rgba(2, 24, 71, .9) 0%, transparent 45%);
}

.terms-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: flex-end;
    min-height: 600px;
    padding-top: 200px;
    padding-bottom: 122px;
}

.terms-hero__content { max-width: 820px; }

.terms-hero__title {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--iexe-white, #fff);
    font-family: var(--font-display, sans-serif);
    font-size: clamp(68px, 7vw, 108px);
    font-weight: 800;
    line-height: .86;
    letter-spacing: -.025em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, .22);
}

.terms-hero__title span:last-child { color: var(--iexe-cyan, #55cff5); }

.terms-hero__intro {
    margin: 34px 0 0;
    color: var(--iexe-white, #fff);
    font-size: clamp(18px, 1.45vw, 24px);
    font-weight: 500;
    line-height: 1.35;
}

.terms-document {
    position: relative;
    padding: 0 0 92px;
}

.terms-document__container {
    position: relative;
    z-index: 2;
    margin-top: -125px;
}

.terms-document__card {
    width: 100%;
    padding: 58px clamp(38px, 6vw, 88px) 64px;
    border: 1px solid rgba(96, 151, 230, .5);
    border-radius: 28px;
    background: var(--iexe-white, #fff);
    box-shadow: 0 24px 55px rgba(1, 11, 43, .28);
}

.terms-document__header { margin-bottom: 34px; }

.terms-document__title {
    margin: 0 0 16px;
    color: var(--iexe-navy, #071a42);
    font-family: var(--font-display, sans-serif);
    font-size: clamp(34px, 4vw, 58px);
    font-style: italic;
    font-weight: 800;
    line-height: 1;
}

.terms-document__intro {
    margin: 0;
    color: #263858;
    font-size: 18px;
    line-height: 1.55;
}

.terms-document__section { margin-top: 30px; }

.terms-document__section h3 {
    margin: 0 0 8px;
    color: var(--iexe-navy, #071a42);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.28;
}

.terms-document__section p, .terms-document__definitions {
    margin: 0;
    color: #202b3e;
    font-size: 16px;
    line-height: 1.65;
}

.terms-document__section p + p { margin-top: 14px; }

.terms-document__section a {
    color: #174da6;
    font-weight: 800;
}

.terms-document__section a:hover { color: #012c7a; }

.terms-document__definitions {
    display: grid;
    gap: 14px;
}

.terms-document__definitions div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.terms-document__definitions dt {
    font-style: italic;
    font-weight: 800;
}

.terms-document__definitions dd { margin: 0; }

.terms-document__actions {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #d8e3f1;
}

.terms-document__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid #31559f;
    border-radius: 12px;
    background: #012c7a;
    color: var(--iexe-white, #fff);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.terms-document__back:hover {
    border-color: var(--iexe-cyan, #55cff5);
    background: #083b91;
    color: var(--iexe-white, #fff);
}

.terms-document__back:focus-visible {
    outline: 3px solid var(--iexe-cyan, #55cff5);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .terms-hero, .terms-hero__container { min-height: 610px; }
    .terms-hero__container {
        padding-top: 190px;
        padding-bottom: 115px;
    }
    .terms-document__container { margin-top: -72px; }
}

@media (max-width: 767.98px) {
    .terms-hero, .terms-hero__container { min-height: 560px; }
    .terms-hero__media img { object-position: 68% center; }
    .terms-hero__container {
        align-items: center;
        padding-top: 45px;
        padding-bottom: 80px;
    }
    .terms-hero__title { font-size: clamp(50px, 15vw, 68px); }
    .terms-hero__intro {
        margin-top: 26px;
        font-size: 16px;
    }
    .terms-hero__intro br { display: none; }
    .terms-document { padding-bottom: 58px; }
    .terms-document__container {
        margin-top: -165px;
        padding-right: 12px;
        padding-left: 12px;
    }
    .terms-document__card {
        padding: 36px 24px 42px;
        border-radius: 20px;
    }
    .terms-document__header { margin-bottom: 30px; }
    .terms-document__title { font-size: clamp(30px, 9vw, 42px); }
    .terms-document__intro {
        font-size: 16px;
        line-height: 1.5;
    }
    .terms-document__section { margin-top: 26px; }
    .terms-document__section h3 { font-size: 18px; }
    .terms-document__section p, .terms-document__definitions {
        font-size: 15px;
        line-height: 1.55;
    }
}

@media (max-width: 399.98px) {
    .terms-hero__title { font-size: 47px; }
    .terms-document__card {
        padding-right: 20px;
        padding-left: 20px;
    }
}
