/* ============================================
   LEGAL PAGES — Privacy, Terms, Cookies
   Tonos planos, sin sombras ni gradientes, radius 10px
   ============================================ */

/* Hero compacto — transparente para que el body bg global se vea (controlado por GSAP) */
.legal-hero {
    padding: 160px 0 60px 0;
    background-color: transparent;
    border-bottom: 1px solid #ececec;
}
.legal-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.legal-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #D5A8A5;
    margin: 0 0 14px 0;
}
.legal-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 500;
    color: #2c2c2c;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}
.legal-title .serif {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-weight: 500;
}
.legal-meta {
    font-size: 14px;
    color: #7F8D98;
    margin: 0;
}

/* Cuerpo: TOC sticky + contenido en prosa — transparente, body manda */
.legal-body {
    padding: 60px 0 120px 0;
    background-color: transparent;
}
.legal-body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}

/* Tabla de contenidos */
.legal-toc {
    position: sticky;
    top: 110px;
    align-self: start;
    border-left: 1px solid #ececec;
    padding-left: 20px;
}
.legal-toc-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7F8D98;
    margin: 0 0 16px 0;
}
.legal-toc nav {
    display: flex;
    flex-direction: column;
}
.legal-toc a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}
.legal-toc a:last-child { border-bottom: none; }
.legal-toc a.is-active { color: #D5A8A5; font-weight: 600; }

/* Contenido */
.legal-content {
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.75;
    max-width: 760px;
}
.legal-content p { margin: 0 0 18px 0; }
.legal-content strong { font-weight: 600; color: #2c2c2c; }
.legal-content a {
    color: #D5A8A5;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #e7c8c5;
}

.legal-section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid #ececec;
    scroll-margin-top: 100px;
}
.legal-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}
.legal-section h2 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 14px 0;
    letter-spacing: -0.2px;
}
.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 22px 0 10px 0;
}

/* Listas en prosa legal */
.legal-content ul,
.legal-content ol {
    margin: 0 0 18px 0;
    padding-left: 22px;
}
.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Caja de info / aviso */
.legal-callout {
    background-color: #f6f6f6;
    border-left: 3px solid #D5A8A5;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 22px 0;
    color: #2c2c2c;
    font-size: 15px;
    line-height: 1.65;
}

/* Bloque de contacto al final */
.legal-contact-block {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 32px;
}
.legal-contact-block p { margin: 0 0 6px 0; }
.legal-contact-block p:last-child { margin: 0; }
.legal-contact-block .legal-contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7F8D98;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .legal-body .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .legal-toc {
        position: static;
        border-left: none;
        border-top: 1px solid #ececec;
        border-bottom: 1px solid #ececec;
        padding: 16px 0;
    }
    .legal-hero { padding: 130px 0 40px 0; }
    .legal-body { padding: 40px 0 80px 0; }
}

/* ============================================
   COOKIE BANNER (global)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 980px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 18px 22px;
    z-index: 9990;
    display: none; /* JS lo muestra solo si no hay consent guardado */
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__copy {
    flex: 1 1 280px;
    color: #2c2c2c;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.cookie-banner__copy a {
    color: #D5A8A5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner__btn {
    appearance: none;
    border: 1px solid #d8dade;
    background-color: #ffffff;
    color: #2c2c2c;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}
.cookie-banner__btn--primary {
    background-color: #7F8D98;
    border-color: #7F8D98;
    color: #ffffff;
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 12px;
        padding: 16px;
    }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__btn { flex: 1; }
}
