/**
 * Staff Aéreo — vista Términos (views/terms.html)
 * Banner propio sin navbar: banner-T&C.webp + Logo-Staff-Aereo.png
 */

.page-terms {
    --terms-navy: #010066;
    --terms-muted: #5f6778;
    --terms-hero-min-h: clamp(280px, 52vw, 520px);
    /* Mismo ritmo lateral/vertical que index (home-intro, services-cards, contacto) */
    --index-section-gap: clamp(3.5rem, 7.5vw, 5.5rem);
    --index-home-intro-inset-inline: clamp(4rem, 9.5vw, 7.75rem);
    background: #ffffff;
}

.page-terms--no-nav header {
    display: none !important;
}

.page-terms .footer {
    margin-top: 0;
}

/* --- Banner T&C --- */
.terms-hero {
    position: relative;
    width: 100%;
    min-height: var(--terms-hero-min-h);
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

.terms-hero__media {
    position: absolute;
    inset: 0;
    background-color: #1a3560;
    background-image: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.08) 48%,
            #ffffff 68%,
            #ffffff 100%
        ),
        url('../../res/img/TC.png');
    background-size: cover, cover;
    background-position: center center, center 42%;
    background-repeat: no-repeat;
}

.terms-hero__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.65rem, 1.8vw, 1rem) clamp(1rem, 3vw, 1.75rem) clamp(0.75rem, 2vw, 1.1rem);
    background: #ffffff;
    border-radius: 0 0 clamp(10px, 2vw, 16px) clamp(10px, 2vw, 16px);
    text-decoration: none;
}

.terms-hero__badge img {
    display: block;
    width: auto;
    height: clamp(56px, 13vw, 88px);
    max-width: min(240px, 58vw);
    object-fit: contain;
}

.terms-hero__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(1.25rem, 4vw, 2.5rem) var(--index-home-intro-inset-inline) clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        #ffffff 22%,
        #ffffff 100%
    );
}

.terms-hero__title-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-bottom: clamp(0.75rem, 2.2vw, 1.15rem);
    pointer-events: auto;
}

.terms-hero__title-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
    width: min(32rem, 94vw);
    height: 2px;
    box-shadow: none;
    filter: none;
    transform: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        rgba(1, 0, 102, 0.1) 10%,
        rgba(1, 0, 102, 0.5) 22%,
        var(--terms-navy) 34%,
        var(--terms-navy) 66%,
        rgba(1, 0, 102, 0.5) 78%,
        rgba(1, 0, 102, 0.1) 90%,
        #ffffff 100%
    );
}

.terms-hero__title {
    margin: 0;
    text-shadow: none;
    font-family: 'Kufam ExtraBold', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 4.2vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
}

.terms-hero__title-navy {
    color: var(--terms-navy);
}

.terms-hero__title-muted {
    color: var(--terms-muted);
}

/* Contenido legal — mismo padding que secciones del index */
.terms-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--index-section-gap) var(--index-home-intro-inset-inline) clamp(3rem, 7vw, 4.5rem);
    box-sizing: border-box;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.1vw, 1.05rem);
    line-height: 1.3;
    color: #333333;
    background: #ffffff;
}

.terms-main h2 {
    margin: 2rem 0 0.75rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(0.88rem, 1.9vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #333333;
}

.terms-main h2:first-of-type {
    margin-top: 0;
}

.terms-main p {
    margin: 0 0 1rem;
}

/* Listas: mismo ritmo que el texto (sin hueco extra respecto a párrafos) */
.terms-main .terms-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
    line-height: 1.3;
}

.terms-main .terms-list li {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.terms-main p:has(+ .terms-list) {
    margin-bottom: 0;
}

.terms-main .terms-list + p {
    margin-top: 0;
}

.terms-main .terms-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--terms-muted);
}

@media (max-width: 900px) {
    .page-terms {
        --index-home-intro-inset-inline: clamp(2.25rem, 7vw, 4.15rem);
    }
}

@media (max-width: 768px) {
    .page-terms {
        --index-mobile-inset-inline: clamp(0.375rem, 2vw, 0.625rem);
        --index-mobile-body-fs: clamp(0.95rem, 1.18vw, 1.2rem);
    }

    .terms-hero__bottom {
        padding-inline: var(--index-mobile-inset-inline);
    }

    .terms-hero__title {
        font-size: clamp(0.95rem, 4.8vw, 1.45rem);
        white-space: nowrap;
    }

    .terms-hero__media {
        background-position: center center, center 38%;
    }

    .terms-main {
        padding: var(--index-section-gap) var(--index-mobile-inset-inline) clamp(3rem, 7vw, 4.5rem);
        font-size: var(--index-mobile-body-fs);
    }
}

@media (min-width: 2000px) {
    .page-terms {
        --index-home-intro-inset-inline: clamp(4rem, 5.25vw, 9rem);
        --index-body-fs: clamp(1.2rem, 1.2vw, 1.4rem);
        --terms-heading-fs: clamp(1.15rem, 1.35vw, 1.5rem);
    }

    .terms-main {
        padding: var(--index-section-gap) var(--index-home-intro-inset-inline) clamp(3rem, 7vw, 4.5rem);
        font-size: var(--index-body-fs);
        line-height: 1.3;
    }

    .terms-main h2 {
        font-size: var(--terms-heading-fs);
    }

    .terms-main .terms-list,
    .terms-main .terms-list li {
        line-height: 1.3;
    }
}
