/*
* ===============================================================
* LEGAL TEMPLATE - ESPACIO DEL ASADOR
* Política de Privacidad + Términos y Condiciones
* Archivo separado: /css/legal-ea.css
* ===============================================================
*/

.ea-legal-template {
    background:
        radial-gradient(circle at top right, rgba(245, 130, 32, 0.08), transparent 20%),
        linear-gradient(180deg, #151515 0%, #0f0f0f 100%);
    color: #fff;
}

.ea-legal-template .ast-container {
    max-width: 1240px;
}

/*
* ===============================================================
* HERO
* ===============================================================
*/
.ea-legal-hero {
    position: relative;
    padding: 54px 0 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18,18,18,0.98) 0%, rgba(15,15,15,0.98) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ea-legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.28) 100%),
        radial-gradient(circle at top left, rgba(245,130,32,0.10), transparent 28%);
    pointer-events: none;
}

.ea-legal-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 26px;
    align-items: center;
}

.ea-legal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(245, 130, 32, 0.14);
    border: 1px solid rgba(245, 130, 32, 0.24);
    color: #ffd9bc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ea-legal-hero__content h1 {
    margin: 0 0 12px;
    font-size: clamp(2.35rem, 4vw, 4rem);
    line-height: 0.98;
    color: #fff;
}

.ea-legal-hero__content p {
    max-width: 760px;
    margin: 0 0 20px;
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.75;
}

.ea-legal-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ea-legal-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

.ea-legal-hero__visual {
    display: flex;
    justify-content: flex-end;
}

.ea-legal-hero__card {
    width: 100%;
    max-width: 360px;
    padding: 28px 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(54,54,54,0.86) 0%, rgba(30,30,30,0.92) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 56px rgba(0,0,0,0.24);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.ea-legal-hero__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245,130,32,0.14), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    pointer-events: none;
}

.ea-legal-hero__card-kicker {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 10px;
    color: #ffcfaa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ea-legal-hero__card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    line-height: 1.05;
    color: #fff;
}

.ea-legal-hero__card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    font-size: 0.96rem;
}

/*
* ===============================================================
* MAIN
* ===============================================================
*/
.ea-legal-main {
    padding: 28px 0 72px;
}

.ea-legal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.ea-legal-content-wrap {
    min-width: 0;
}

.ea-legal-content-card {
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(48,48,48,0.88) 0%, rgba(24,24,24,0.97) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

.ea-legal-intro {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(245,130,32,0.12), transparent 26%),
        rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.ea-legal-intro h2 {
    margin: 0 0 10px;
    font-size: 1.75rem;
    line-height: 1.08;
    color: #fff;
}

.ea-legal-intro p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
}

/*
* ===============================================================
* CONTENIDO LEGAL
* ===============================================================
*/
.ea-legal-content {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    line-height: 1.85;
}

.ea-legal-content > *:last-child {
    margin-bottom: 0;
}

.ea-legal-content h2,
.ea-legal-content h3,
.ea-legal-content h4 {
    color: #fff;
    line-height: 1.15;
    scroll-margin-top: 120px;
}

.ea-legal-content h2 {
    margin: 38px 0 16px;
    padding-bottom: 12px;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ea-legal-content h2:first-child {
    margin-top: 0;
}

.ea-legal-content h3 {
    margin: 26px 0 12px;
    font-size: 1.35rem;
}

.ea-legal-content h4 {
    margin: 22px 0 10px;
    font-size: 1.1rem;
}

.ea-legal-content p {
    margin: 0 0 16px;
    color: rgba(255,255,255,0.84);
}

.ea-legal-content ul,
.ea-legal-content ol {
    margin: 0 0 18px 0;
    padding-left: 22px;
    color: rgba(255,255,255,0.84);
}

.ea-legal-content li {
    margin-bottom: 10px;
}

.ea-legal-content strong,
.ea-legal-content b {
    color: #fff;
}

.ea-legal-content a {
    color: #ffcfaa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ea-legal-content a:hover {
    color: #f58220;
}

.ea-legal-content blockquote {
    margin: 22px 0;
    padding: 18px 20px;
    border-left: 4px solid #f58220;
    border-radius: 0 18px 18px 0;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.84);
}

.ea-legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.ea-legal-content th,
.ea-legal-content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    color: rgba(255,255,255,0.84);
}

.ea-legal-content th {
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
}

.ea-legal-content tr:last-child td {
    border-bottom: none;
}

/*
* ===============================================================
* SIDEBAR
* ===============================================================
*/
.ea-legal-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.ea-legal-sidecard {
    padding: 24px 22px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(48,48,48,0.88) 0%, rgba(26,26,26,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

.ea-legal-sidecard__kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffcfaa;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ea-legal-sidecard h3 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    line-height: 1.1;
    color: #fff;
}

.ea-legal-sidecard p {
    margin: 0;
    color: rgba(255,255,255,0.80);
    line-height: 1.75;
}

.ea-legal-sidecard--highlight {
    background:
        radial-gradient(circle at top right, rgba(245,130,32,0.16), transparent 26%),
        linear-gradient(180deg, rgba(66,42,22,0.95) 0%, rgba(31,20,11,0.98) 100%);
}

.ea-legal-sidecard__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

/*
* ===============================================================
* TOC
* ===============================================================
*/
.ea-legal-toc__empty {
    margin: 0;
    color: rgba(255,255,255,0.56);
    font-size: 0.92rem;
    line-height: 1.7;
}

.ea-legal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ea-legal-toc__list li {
    margin: 0;
}

.ea-legal-toc__list a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.86);
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.ea-legal-toc__list a:hover {
    transform: translateY(-1px);
    background: rgba(245,130,32,0.10);
    border-color: rgba(245,130,32,0.24);
    color: #fff;
}

/*
* ===============================================================
* BOTONES
* ===============================================================
*/
.ea-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.ea-legal-btn:hover {
    transform: translateY(-2px);
}

.ea-legal-btn--primary {
    background: linear-gradient(45deg, #f58220, #d96505);
    color: #fff !important;
    box-shadow: 0 14px 24px -14px rgba(245, 130, 32, 0.72);
}

.ea-legal-btn--primary:hover {
    color: #fff !important;
    box-shadow: 0 18px 28px -12px rgba(217, 101, 5, 0.78);
}

.ea-legal-btn--ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff !important;
}

.ea-legal-btn--ghost:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/*
* ===============================================================
* RESPONSIVE
* ===============================================================
*/
@media (max-width: 1024px) {
    .ea-legal-hero__inner,
    .ea-legal-grid {
        grid-template-columns: 1fr;
    }

    .ea-legal-hero__visual {
        justify-content: flex-start;
    }

    .ea-legal-hero__card {
        max-width: 100%;
    }

    .ea-legal-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 900px) {
    .ea-legal-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ea-legal-hero {
        padding: 42px 0 24px;
    }

    .ea-legal-hero__content h1 {
        font-size: 2.45rem;
    }

    .ea-legal-hero__content p {
        font-size: 0.97rem;
        line-height: 1.72;
    }

    .ea-legal-main {
        padding: 22px 0 56px;
    }

    .ea-legal-content-card,
    .ea-legal-sidecard {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .ea-legal-intro {
        padding: 18px;
        border-radius: 18px;
    }

    .ea-legal-content h2 {
        font-size: 1.6rem;
    }

    .ea-legal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .ea-legal-hero__meta {
        flex-direction: column;
    }

    .ea-legal-btn {
        width: 100%;
    }
}