/* =========================================
   ESTILOS PARA PÁGINAS LEGALES B2B — ARCADIAN SUPPORT MX
   v2 — Alineado al sistema visual global del sitio
   ========================================= */

body { background-color: #f1f5f9; }

/* --- HEADER DE PÁGINAS LEGALES --- */
.legal-page-header {
    position: relative;
    background: linear-gradient(160deg, #060d1f 0%, #0a1530 45%, #0e1f5a 100%);
    padding: 130px 5% 50px;
    text-align: center;
    overflow: hidden;
    border-bottom: 3px solid var(--arcadian-gold, #d4af37);
}
/* Cuadrícula de fondo — sistema global */
.legal-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42,110,242,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,110,242,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black 0%, transparent 75%);
    pointer-events: none;
}
/* Luz ambiental */
.legal-page-header::after {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(circle, rgba(42,110,242,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.legal-header-content {
    position: relative;
    z-index: 2;
}
.legal-header-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff !important;
    text-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.legal-header-content p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    color: #94a3b8 !important;
    line-height: 1.6;
}

/* --- ESTRUCTURA GENERAL --- */
.legal-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    padding: 44px 5% 90px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* --- MENÚ LATERAL (SIDEBAR) --- */
.legal-sidebar {
    background: #fff;
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.04);
}
.legal-sidebar h3 {
    font-size: 1.02rem;
    color: #0f172a;
    margin-bottom: 18px;
    font-weight: 800;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.legal-sidebar h3 i { color: var(--arcadian-blue, #2a6ef2); }

.legal-nav-links { display: flex; flex-direction: column; gap: 7px; }
.legal-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition:
        background     0.22s ease,
        color           0.22s ease,
        border-color    0.22s ease,
        transform       0.22s cubic-bezier(0.33,1,0.68,1);
}
.legal-nav-links a i { font-size: 1.05rem; width: 20px; text-align: center; opacity: 0.7; transition: opacity 0.22s ease; }
.legal-nav-links a:hover {
    background: #f8fafc;
    color: #1e3a8a;
    border-color: #cbd5e1;
    transform: translateX(3px);
}
.legal-nav-links a.active {
    background: #eff6ff;
    color: var(--arcadian-blue, #2a6ef2);
    border-color: #bfdbfe;
    box-shadow: 0 2px 6px rgba(42,110,242,0.08);
}
.legal-nav-links a.active i { opacity: 1; }

/* --- CONTENIDO DEL DOCUMENTO --- */
.legal-content-card {
    background: #fff;
    padding: 50px 56px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}

.update-badge {
    background: #eff6ff;
    color: var(--arcadian-blue, #2a6ef2);
    padding: 9px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 32px;
    border: 1px solid #bfdbfe;
}

.legal-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-section h2 {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--arcadian-blue, #2a6ef2);
    line-height: 1.4;
}
.legal-section h3 {
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 22px 0 12px;
}
.legal-section p {
    color: #475569;
    line-height: 1.75;
    font-size: 0.97rem;
    margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: #0f172a; font-weight: 700; }

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.legal-list > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    color: #475569;
    line-height: 1.72;
    font-size: 0.96rem;
}
.legal-list > li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 7px; height: 7px;
    background: var(--arcadian-gold, #d4af37);
    border-radius: 50%;
}
.legal-list > li strong { color: #0f172a; }
.legal-list > li:last-child { margin-bottom: 0; }

/* Sub-listas dentro de cláusulas largas */
.legal-list ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}
.legal-list ul li {
    color: #64748b;
    line-height: 1.65;
    font-size: 0.93rem;
    margin-bottom: 5px;
}

/* Bloque destacado — cláusulas o avisos importantes */
.legal-highlight {
    background: #fffbeb;
    padding: 22px 24px;
    border-left: 4px solid var(--arcadian-gold, #d4af37);
    border-radius: 0 12px 12px 0;
    margin: 22px 0;
}
.legal-highlight p {
    margin: 0;
    font-weight: 600;
    color: #78350f;
    line-height: 1.65;
    font-size: 0.93rem;
}
.legal-highlight strong { color: #92400e; }

/* --- RESPONSIVIDAD --- */
@media (max-width: 1024px) {
    .legal-layout { grid-template-columns: 250px 1fr; }
    .legal-content-card { padding: 40px 36px; }
}
@media (max-width: 768px) {
    .legal-layout { grid-template-columns: 1fr; padding: 30px 5% 70px; }
    .legal-sidebar {
        position: relative;
        top: 0;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 14px;
    }
    .legal-sidebar h3 { display: none; }
    .legal-nav-links { flex-direction: row; }
    .legal-nav-links a { white-space: nowrap; }
    .legal-content-card { padding: 30px 22px; }
    .legal-page-header { padding: 120px 5% 36px; }
    .legal-header-content h1 { font-size: 1.9rem; }
    .legal-section h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}