/**
 * C+ — Legal pages styles (Terms, Privacy, FAQ)
 */

/* =========================================
   Header — solo logo
   ========================================= */
.terms-page > .terms-header {
    position: fixed;
    top: 1.25rem;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    box-sizing: border-box;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    animation: navSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.terms-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.terms-header__logo img {
    height: clamp(72px, 11vw, 110px);
    width: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .terms-page > .terms-header {
        top: 1rem;
        padding: 0 1.25rem;
    }

    .terms-header__logo img {
        height: clamp(64px, 16vw, 88px);
    }
}

/* =========================================
   Banner Compact
   ========================================= */
.banner-home--compact {
    position: relative;
    min-height: unset;
    background: none;
    display: block;
    padding: 0;
    overflow: hidden;
    --terms-banner-split: 50%;
}

.banner-home--compact__bg {
    width: 100%;
    height: auto;
    display: block;
}

.banner-home--compact .banner-home__inner {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.banner-compact__content {
    position: absolute;
    left: 50%;
    top: calc(var(--terms-banner-split) + 8%);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: min(900px, 92vw);
    max-width: 900px;
    text-align: center;
    pointer-events: auto;
}

.banner-compact__title-wrap {
    position: relative;
    display: inline-block;
}

.banner-compact__sparkle {
    position: absolute;
    top: -55%;
    right: -6%;
    width: clamp(40px, 6vw, 80px);
    height: auto;
    pointer-events: none;
}

.banner-compact__title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #2727E1;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.banner-compact__trazo {
    width: clamp(180px, 40vw, 520px);
    height: auto;
    display: block;
    margin: 0;
}

/* ── FAQ banner (título largo en una línea) ── */
.banner-compact__content--faq {
    width: min(98vw, 1600px);
    max-width: 1600px;
    gap: 0;
}

.banner-compact__title-wrap--faq {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
}

.banner-compact__title--faq {
    white-space: nowrap;
    line-height: 1;
}

.banner-compact__sparkle--faq {
    top: -55%;
    right: -5%;
    left: auto;
    width: clamp(32px, 5vw, 64px);
}

.banner-compact__trazo--faq {
    width: min(72%, clamp(180px, 34vw, 420px));
    margin: 0.35rem auto 0;
}

/* =========================================
   Contenido legal
   ========================================= */
.terms-space {
    background: #ffffff;
    width: 100%;
    min-height: unset;
    padding: 0;
}

.terms-space__inner {
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 5vw, 4.5rem);
    box-sizing: border-box;
}

.terms-body {
    color: #333333;
}

.terms-body__section {
    padding: 0;
    width: auto;
}

.terms-body__section + .terms-body__section {
    margin-top: 1.65rem;
}

.terms-body__heading {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 700;
    color: #2727E1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.terms-page--faq .terms-body__heading {
    text-transform: none;
    letter-spacing: normal;
}

.terms-body__text {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    color: #606060;
    line-height: 1.45;
    margin: 0;
}

.terms-body__text + .terms-body__text {
    margin-top: 0.35rem;
}

.terms-body__list {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 400;
    color: #606060;
    line-height: 1.45;
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.terms-body__list li + li {
    margin-top: 0.25rem;
}

.terms-body__link {
    color: #2727E1;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

.terms-body__link:hover {
    color: #1a1ab0;
}

/* =========================================
   Footer — fondo blanco (solo Terms)
   ========================================= */
.terms-page .footer {
    background-color: #ffffff;
}

@media (max-width: 900px) {
    .terms-page .footer {
        background-color: #ffffff;
    }

    .terms-page .footer__follow,
    .terms-page .footer__nav-link,
    .terms-page .footer__nav-link span,
    .terms-page .footer__contact-link,
    .terms-page .footer__legal li,
    .terms-page .footer__legal a {
        color: #2727E1;
    }

    .terms-page .footer__nav-link:hover,
    .terms-page .footer__nav-link:focus,
    .terms-page .footer__nav-link:focus-visible,
    .terms-page .footer__nav-link:hover span,
    .terms-page .footer__nav-link:focus span,
    .terms-page .footer__nav-link:focus-visible span,
    .terms-page .footer__legal a:hover,
    .terms-page .footer__legal a:focus,
    .terms-page .footer__legal a:focus-visible {
        color: #1a1ab0;
    }

    .terms-page .footer__contact-icon {
        filter: none;
    }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .banner-home--compact {
        position: relative;
        background-image: url('../../../res/img/banners@300x.webp');
        background-size: cover;
        background-position: center top;
        min-height: 85vw;
        overflow: hidden;
        width: 100%;
    }

    .banner-home--compact__bg {
        display: none;
    }

    .banner-home--compact .banner-home__inner {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    .banner-compact__content {
        width: min(100%, 92vw);
        max-width: 100%;
    }

    .banner-compact__sparkle {
        display: none;
    }

    .terms-page--faq .banner-compact__sparkle--faq {
        display: block;
        top: -52%;
        right: -4%;
        left: auto;
        width: clamp(24px, 6vw, 40px);
    }

    .terms-page--faq .banner-compact__content--faq {
        width: min(100%, 98vw);
        max-width: 100%;
    }

    .banner-compact__title {
        font-size: clamp(1.4rem, 8vw, 2.8rem);
    }

    .banner-compact__trazo {
        width: clamp(130px, 65vw, 300px);
    }

    .banner-compact__trazo--faq {
        width: min(78%, clamp(160px, 58vw, 280px));
    }
}

@media (max-width: 500px) {
    .banner-home--compact {
        min-height: 110vw;
    }

    .banner-compact__title {
        font-size: clamp(1.2rem, 7.5vw, 2rem);
    }

    .banner-compact__trazo {
        width: clamp(110px, 55vw, 220px);
    }

    .banner-compact__trazo--faq {
        width: min(78%, clamp(160px, 58vw, 280px));
    }
}

@media (min-width: 2000px) {
    .terms-page > .terms-header {
        top: 2rem;
        padding: 0 clamp(4rem, 7vw, 9rem);
    }

    .terms-header__logo img {
        height: 130px;
    }

    .banner-compact__content {
        max-width: 1400px;
        width: min(1400px, 88vw);
    }

    .banner-compact__title {
        font-size: 6.5rem;
    }

    .banner-compact__trazo {
        width: 650px;
    }

    .banner-compact__sparkle {
        width: 120px;
    }

    .terms-page--faq .banner-compact__content--faq {
        max-width: 1900px;
        width: min(1900px, 96vw);
    }

    .terms-page--faq .banner-compact__sparkle--faq {
        width: 90px;
        top: -55%;
        right: -4%;
        left: auto;
    }

    .terms-page--faq .banner-compact__trazo--faq {
        width: min(70%, 520px);
    }

    .terms-space__inner {
        max-width: 1900px;
        padding: 4rem clamp(4rem, 7vw, 9rem) 6rem;
    }

    .terms-body__section + .terms-body__section {
        margin-top: 2rem;
    }

    .terms-body__heading {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .terms-body__text {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .terms-body__list {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .terms-body__text + .terms-body__text {
        margin-top: 0.45rem;
    }

    .terms-page .footer {
        background-color: #ffffff;
    }

    .terms-page .footer__inner {
        max-width: 1900px;
        padding: 0 clamp(4rem, 7vw, 9rem);
        gap: 6rem;
    }

    .terms-page .footer__logo {
        width: 170px;
    }

    .terms-page .footer__follow {
        font-size: 1.2rem;
    }

    .terms-page .footer__socials img {
        width: 54px;
    }

    .terms-page .footer__nav-link {
        font-size: 1.45rem;
    }

    .terms-page .footer__contact-link {
        font-size: 1.25rem;
    }

    .terms-page .footer__contact-icon {
        width: 24px;
    }

    .terms-page .footer__legal li,
    .terms-page .footer__legal a {
        font-size: 1.15rem;
    }
}

@media (min-width: 2560px) {
    .terms-page > .terms-header {
        top: 2.5rem;
        padding: 0 10rem;
    }

    .terms-header__logo img {
        height: 150px;
    }

    .banner-compact__content {
        max-width: 1700px;
        width: min(1700px, 85vw);
    }

    .banner-compact__title {
        font-size: 9rem;
    }

    .banner-compact__trazo {
        width: 850px;
    }

    .banner-compact__sparkle {
        width: 140px;
    }

    .terms-page--faq .banner-compact__content--faq {
        max-width: 2300px;
        width: min(2300px, 94vw);
    }

    .terms-page--faq .banner-compact__sparkle--faq {
        width: 110px;
        top: -55%;
        right: -3%;
        left: auto;
    }

    .terms-page--faq .banner-compact__trazo--faq {
        width: min(68%, 680px);
    }

    .terms-space__inner {
        max-width: 2300px;
        padding: 5rem 10rem 7rem;
    }

    .terms-body__section + .terms-body__section {
        margin-top: 2.25rem;
    }

    .terms-body__heading {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .terms-body__text {
        font-size: 1.3rem;
        line-height: 1.55;
    }

    .terms-body__list {
        font-size: 1.3rem;
        line-height: 1.55;
    }

    .terms-body__text + .terms-body__text {
        margin-top: 0.5rem;
    }

    .terms-page .footer__inner {
        max-width: 2300px;
        padding: 0 10rem;
        gap: 8rem;
    }

    .terms-page .footer__logo {
        width: 200px;
    }

    .terms-page .footer__follow {
        font-size: 1.35rem;
    }

    .terms-page .footer__socials img {
        width: 64px;
    }

    .terms-page .footer__nav-link {
        font-size: 1.65rem;
    }

    .terms-page .footer__contact-link {
        font-size: 1.4rem;
    }

    .terms-page .footer__contact-icon {
        width: 28px;
    }

    .terms-page .footer__legal li,
    .terms-page .footer__legal a {
        font-size: 1.3rem;
    }
}
