/* ============================================
   LEGAL PAGES - ESTILOS ESPECÍFICOS
   ============================================
   Diseñado para integrarse con styles.css
   Última actualización: Julio 2026
   ============================================ */

/* ============================================
   1. BODY LEGAL
   ============================================ */
body.legal-page {
    padding-top: 0;
}

/* ============================================
   2. LEGAL HERO
   ============================================ */
.legal-hero {
    background: var(--gradient-primary);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.legal-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.legal-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.legal-breadcrumb a:hover {
    color: var(--white);
}

.legal-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

.legal-breadcrumb .current {
    color: var(--gold-light);
    font-weight: 600;
}

.legal-title {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.legal-update {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ============================================
   3. LAYOUT PRINCIPAL (SIDEBAR + CONTENIDO)
   ============================================ */
.legal-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ============================================
   4. SIDEBAR DE NAVEGACIÓN
   ============================================ */
.legal-sidebar {
    position: sticky;
    top: 100px;
}

.legal-nav {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.legal-nav h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.legal-nav ul {
    list-style: none;
}

.legal-nav ul li {
    margin-bottom: 0.25rem;
}

.legal-nav ul li a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.legal-nav ul li a:hover {
    background: var(--gray-50);
    color: var(--accent);
    border-left-color: var(--accent);
}

/* ============================================
   5. CONTENIDO PRINCIPAL
   ============================================ */
.legal-main {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--accent-light);
}

/* ============================================
   6. LISTAS LEGALES
   ============================================ */
.legal-list {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.legal-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--gradient-accent);
    border-radius: 50%;
}

.legal-list-numbered {
    counter-reset: item;
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.legal-list-numbered li {
    position: relative;
    padding: 0.75rem 0 0.75rem 3rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    counter-increment: item;
}

.legal-list-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ============================================
   7. CAJAS DE INFORMACIÓN Y ALERTAS
   ============================================ */
.legal-info-box {
    background: var(--gray-50);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-info-box .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-info-box .info-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.legal-info-box .info-list li:last-child {
    border-bottom: none;
}

.legal-info-box .info-list li strong {
    color: var(--gray-900);
    display: inline-block;
    min-width: 180px;
}

.legal-info-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-info-box a:hover {
    text-decoration: underline;
}

.legal-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.legal-warning strong {
    color: var(--gold);
}

/* ============================================
   8. GRID DE DERECHOS (PRIVACIDAD)
   ============================================ */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.right-card {
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.right-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.right-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.right-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   9. TABLA DE COOKIES
   ============================================ */
.cookies-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookies-table thead {
    background: var(--gradient-primary);
}

.cookies-table thead th {
    padding: 1rem;
    text-align: left;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookies-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.cookies-table tbody tr:hover {
    background: var(--gray-50);
}

.cookies-table tbody tr:last-child {
    border-bottom: none;
}

.cookies-table tbody td {
    padding: 1rem;
    color: var(--gray-700);
    vertical-align: top;
}

.cookies-table code {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* ============================================
   10. GRID DE NAVEGADORES (COOKIES)
   ============================================ */
.browsers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.browser-card {
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.browser-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.browser-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.browser-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   11. RESPONSIVE - PÁGINAS LEGALES
   ============================================ */
@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-nav {
        display: flex;
        flex-direction: column;
    }

    .legal-nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .legal-main {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 7rem 0 3rem;
    }

    .legal-title {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }

    .legal-main {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-nav ul {
        grid-template-columns: 1fr;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .browsers-grid {
        grid-template-columns: 1fr;
    }

    .legal-info-box .info-list li strong {
        display: block;
        min-width: auto;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 6rem 0 2.5rem;
    }

    .legal-main {
        padding: 1.25rem;
    }

    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.05rem;
    }

    .cookies-table {
        font-size: 0.8rem;
    }

    .cookies-table thead th,
    .cookies-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}