/* =========================================================
   05 - LEGAL
   Rutas: /aviso-legal/, /politica-de-privacidad/, /politica-de-cookies/
   (familia elegida en inc/00-cargador.php)
   Traslado sin cambios de diseño (lote L-2026-10-17-ekipa-recursos-traslado):
   copia literal del <style> del contenido de la página 206 (/politica-de-cookies/); el de 202 y 204 es un subconjunto,
   servido el 2026-10-17, sha256 1c5972cb20b8a0d78bc501260a6b4f551ee30901af3244eb9ec2066b9e8521c1.
   El origen se vacía en un lote posterior.
   ========================================================= */

/* RESET Y BASE */
.site-content,
.ast-container,
.entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

header.entry-header {
    display: none !important;
}

.ekp-legal-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #f9fafb;
}

.ekp-legal-page * {
    box-sizing: border-box;
}

.ekp-legal-page a,
.ekp-legal-page a:hover,
.ekp-legal-page a:focus,
.ekp-legal-page a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* BOTONES */
.ekp-btn-main {
    background: #f97316;
    color: #fff !important;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}

.ekp-btn-main:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.ekp-btn-secondary {
    background: #fff;
    color: #111827 !important;
    padding: 13px 24px;
    font-size: 0.98rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}

.ekp-btn-secondary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* HERO */
.ekp-legal-hero {
    background: #111827;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid #f97316;
}

.ekp-legal-hero img {
    max-width: 200px;
    margin-bottom: 22px;
    filter: brightness(0) invert(1);
}

.ekp-legal-hero h1 {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 14px;
    line-height: 1.1;
}

.ekp-legal-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.55;
}

/* CONTENIDO */
.ekp-legal-section {
    padding: 60px 20px;
}

.ekp-legal-inner {
    max-width: 980px;
    margin: 0 auto;
}

.ekp-legal-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 36px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.ekp-legal-card h2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #111827;
    text-transform: uppercase;
    margin: 34px 0 14px;
    line-height: 1.2;
}

.ekp-legal-card h2:first-child {
    margin-top: 0;
}

.ekp-legal-card h3 {
    font-size: 1.18rem;
    font-weight: 900;
    color: #111827;
    text-transform: uppercase;
    margin: 26px 0 12px;
    line-height: 1.25;
}

.ekp-legal-card p {
    font-size: 1.03rem;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 16px;
}

.ekp-legal-card ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.ekp-legal-card li {
    color: #374151;
    font-size: 1.03rem;
    line-height: 1.65;
    margin-bottom: 8px;
}

.ekp-legal-card strong {
    color: #111827;
}

.ekp-legal-data-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 24px;
    margin: 22px 0 26px;
}

.ekp-legal-data-box p {
    margin-bottom: 10px;
}

.ekp-legal-warning {
    background: #111827;
    color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.ekp-legal-warning p {
    color: #d1d5db;
    margin-bottom: 12px;
}

.ekp-legal-warning strong {
    color: #fff;
}

.ekp-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0 28px;
    font-size: 0.98rem;
}

.ekp-legal-table th,
.ekp-legal-table td {
    border: 1px solid #e5e7eb;
    padding: 14px;
    text-align: left;
    vertical-align: top;
    color: #374151;
    line-height: 1.55;
}

.ekp-legal-table th {
    background: #111827;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.ekp-legal-table td strong {
    color: #111827;
}

.ekp-legal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.ekp-legal-link {
    background: #f3f4f6;
    color: #111827 !important;
    padding: 12px 16px;
    border-radius: 5px;
    font-weight: 900;
    display: inline-block;
    transition: 0.3s;
}

.ekp-legal-link:hover {
    background: #e5e7eb;
}

/* BLOQUE FINAL */
.ekp-legal-final {
    background: #111827;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.ekp-legal-final h2 {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.ekp-legal-final p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ekp-legal-final-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ekp-legal-hero {
        padding: 48px 18px;
    }

    .ekp-legal-hero img {
        max-width: 175px;
    }

    .ekp-legal-hero h1 {
        font-size: 2rem;
    }

    .ekp-legal-hero p {
        font-size: 1.02rem;
    }

    .ekp-legal-section {
        padding: 45px 16px;
    }

    .ekp-legal-card {
        padding: 26px 20px;
    }

    .ekp-legal-card h2 {
        font-size: 1.35rem;
    }

    .ekp-legal-table,
    .ekp-legal-table thead,
    .ekp-legal-table tbody,
    .ekp-legal-table th,
    .ekp-legal-table td,
    .ekp-legal-table tr {
        display: block;
        width: 100%;
    }

    .ekp-legal-table thead {
        display: none;
    }

    .ekp-legal-table tr {
        margin-bottom: 18px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .ekp-legal-table td {
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .ekp-legal-table td:last-child {
        border-bottom: none;
    }

    .ekp-legal-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 900;
        color: #111827;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .ekp-legal-final h2 {
        font-size: 1.55rem;
    }

    .ekp-legal-final-actions {
        flex-direction: column;
        max-width: 340px;
        margin: 0 auto;
    }

    .ekp-btn-main,
    .ekp-btn-secondary {
        width: 100%;
        text-align: center;
    }
}
