/**
 * PointSellerBI - Páginas Legales (Términos / Privacidad)
 * Diseño alineado con PointSeller Expressive UI System
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #0A0F1F;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== Hero ===== */
.legal-hero {
    background: linear-gradient(135deg, #005CFF 0%, #7A4DFF 50%, #00D4FF 100%);
    color: white;
    padding: 60px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
    border-radius: 50%;
}
.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -120px; left: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(198,246,141,.18) 0%, transparent 70%);
    border-radius: 50%;
}

.legal-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}
.legal-hero .back-link:hover { color: #C6F68D; }

.legal-hero .badge-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.15);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.legal-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.legal-hero p {
    font-size: 1.05rem;
    opacity: .92;
    max-width: 580px;
    margin: 0 auto;
}
.legal-hero .meta {
    margin-top: 22px;
    font-size: .85rem;
    opacity: .8;
}

/* ===== Contenido ===== */
.legal-container {
    max-width: 880px;
    margin: -60px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.legal-content {
    background: white;
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 16px 48px rgba(0,0,0,.06);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A0F1F;
    margin: 36px 0 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eff6ff;
    display: flex;
    align-items: center;
    gap: 12px;
    scroll-margin-top: 24px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .num {
    background: linear-gradient(135deg, #005CFF, #7A4DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 900;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #374151;
    margin: 24px 0 10px;
}

.legal-content p {
    color: #374151;
    margin-bottom: 14px;
    font-size: .95rem;
}

.legal-content ul, .legal-content ol {
    margin: 12px 0 16px 24px;
    color: #374151;
}
.legal-content li {
    margin-bottom: 8px;
    font-size: .95rem;
}

.legal-content strong { color: #0A0F1F; font-weight: 700; }
.legal-content a { color: #005CFF; text-decoration: none; font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }

/* Callout boxes */
.callout {
    background: #eff6ff;
    border-left: 4px solid #005CFF;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: .9rem;
}
.callout.warning { background: #fff8e1; border-left-color: #f59e0b; color: #92400e; }
.callout.success { background: #f0fdf4; border-left-color: #4CAF50; color: #065f46; }
.callout strong { display: block; margin-bottom: 4px; }

/* TOC */
.toc {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 32px;
    border: 1px solid #e0e7ff;
}
.toc h4 {
    font-size: .8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    columns: 2;
    column-gap: 24px;
}
.toc li {
    margin-bottom: 6px;
    font-size: .9rem;
    counter-increment: section;
}
.toc li::before {
    content: counter(section, decimal-leading-zero) '. ';
    color: #005CFF;
    font-weight: 700;
}
.toc li a { color: #374151; font-weight: 500; }
.toc li a:hover { color: #005CFF; }
.toc { counter-reset: section; }

/* ===== Footer ===== */
.legal-footer {
    text-align: center;
    padding: 30px 24px 60px;
    color: #6b7280;
    font-size: .85rem;
}
.legal-footer a {
    color: #005CFF;
    text-decoration: none;
    font-weight: 600;
}
.legal-footer .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #005CFF, #7A4DFF);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: transform .2s;
    box-shadow: 0 4px 16px rgba(0,92,255,.3);
}
.legal-footer .cta:hover { transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .legal-hero { padding: 40px 20px 80px; }
    .legal-hero h1 { font-size: 1.85rem; }
    .legal-content { padding: 32px 24px; }
    .legal-content h2 { font-size: 1.25rem; }
    .toc ol { columns: 1; }
}
