/* =========================================================
   LEXMAR · PÁGINAS LEGALES
   ========================================================= */

.legal-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #273444;
    font-family: Arial, Helvetica, sans-serif;
}

.legal-main {
    flex: 1;
}

.legal-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.legal-container--narrow {
    max-width: 900px;
}

.legal-hero {
    padding: 72px 0 54px;
    background: #f7f9fb;
    border-bottom: 1px solid #edf0f2;
}

.legal-eyebrow {
    margin: 0 0 12px;
    color: #00a4e4;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    color: #273444;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.legal-intro {
    max-width: 720px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 18px;
    line-height: 1.65;
}

.legal-content {
    padding: 62px 0 76px;
}

.legal-section + .legal-section {
    margin-top: 52px;
    padding-top: 46px;
    border-top: 1px solid #eceff2;
}

.legal-section h2 {
    margin: 0 0 22px;
    color: #273444;
    font-size: 28px;
    line-height: 1.2;
}

.legal-section p,
.legal-related p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.78;
    text-align: justify;
}

.legal-section a,
.legal-related a {
    color: #008dcc;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-data {
    margin: 0 0 32px;
    overflow: hidden;
    border: 1px solid #e6e9ed;
    border-radius: 16px;
    background: #fbfcfd;
}

.legal-data > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 14px 18px;
}

.legal-data > div + div {
    border-top: 1px solid #e9ecef;
}

.legal-data dt {
    color: #273444;
    font-weight: 700;
}

.legal-data dd {
    margin: 0;
    color: #55606f;
}

.legal-related {
    margin-top: 52px;
    padding: 26px 28px;
    border-left: 5px solid #00a4e4;
    border-radius: 12px;
    background: #f4faff;
}

.legal-related p {
    margin-bottom: 14px;
    text-align: left;
}

.legal-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.legal-related__links a {
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .legal-container {
        width: calc(100% - 32px);
    }

    .legal-hero {
        padding: 52px 0 42px;
    }

    .legal-content {
        padding: 46px 0 58px;
    }

    .legal-section + .legal-section {
        margin-top: 40px;
        padding-top: 36px;
    }

    .legal-section h2 {
        font-size: 25px;
    }

    .legal-section p,
    .legal-related p {
        font-size: 15px;
        line-height: 1.72;
        text-align: left;
    }

    .legal-data > div {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 14px 16px;
    }

    .legal-related {
        padding: 22px 20px;
    }

    .legal-related__links {
        flex-direction: column;
        gap: 10px;
    }
}
/* Contenido legal migrado desde la web anterior */
.legal-source-content > h2,
.legal-source-content > h3,
.legal-source-content > h4 {
    color: #273444;
    line-height: 1.25;
}

.legal-source-content > h2 {
    margin: 0 0 24px;
    font-size: 30px;
}

.legal-source-content > h3 {
    margin: 48px 0 20px;
    padding-top: 42px;
    border-top: 1px solid #eceff2;
    font-size: 25px;
}

.legal-source-content > h4 {
    margin: 30px 0 14px;
    font-size: 19px;
}

.legal-source-content p,
.legal-source-content > span,
.legal-source-content > div {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.78;
}

.legal-source-content p {
    margin: 0 0 18px;
    text-align: justify;
}

.legal-source-content a {
    color: #008dcc !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-source-content strong {
    color: inherit;
}

@media (max-width: 640px) {
    .legal-source-content > h2 {
        font-size: 27px;
    }

    .legal-source-content > h3 {
        margin-top: 38px;
        padding-top: 34px;
        font-size: 23px;
    }

    .legal-source-content > h4 {
        font-size: 18px;
    }

    .legal-source-content p,
    .legal-source-content > span,
    .legal-source-content > div {
        font-size: 15px;
        line-height: 1.72;
    }

    .legal-source-content p {
        text-align: left;
    }
}
/* Elementos auxiliares para Política de Cookies */
.legal-source-content ul {
    margin: 0 0 24px;
    padding-left: 24px;
    color: #4b5563;
}

.legal-source-content li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.75;
}

.legal-divider {
    height: 1px;
    margin: 34px 0;
    background: #eceff2;
}

@media (max-width: 640px) {
    .legal-source-content ul {
        padding-left: 20px;
    }

    .legal-source-content li {
        font-size: 15px;
        line-height: 1.7;
    }
}
/* Destacado de navegadores en "Más información sobre las cookies" */
.legal-browser-title {
    display: inline-block;
    margin-top: 22px;
    margin-bottom: 8px;
    padding: 7px 12px;
    background: #eef8fc;
    border-left: 4px solid #00a4e4;
    border-radius: 6px;
    color: #273444 !important;
    font-weight: 700;
    letter-spacing: .02em;
}

@media (max-width: 640px) {
    .legal-browser-title {
        margin-top: 18px;
        padding: 6px 10px;
    }
}
/* Subapartados dentro de ANDROID */
.legal-browser-subtitle {
    display: inline;
    color: #00a4e4 !important;
    font-weight: 700;
}

@media (max-width: 640px) {
    .legal-browser-subtitle {
        font-weight: 700;
    }
}
