/* ═══════════════════════════════════════════════════════════════════════
   NEXOSOUL — Estilos para páginas legales (terms.html y privacy.html)
   ═══════════════════════════════════════════════════════════════════════ */

.legal-page {
    background: var(--bone);
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO LEGAL — sutil, elegante
   ═══════════════════════════════════════════════════════════════════ */

.legal-hero {
    position: relative;
    padding: 200px 40px 120px;
    background: var(--navy);
    color: var(--bone);
    overflow: hidden;
}

.legal-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(245, 240, 232, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--bone);
    margin-bottom: 40px;
}

.legal-hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 9vw, 120px);
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 32px;
}

.legal-hero-title em {
    font-family: var(--font-italic);
    color: var(--scarlet-2);
    font-weight: 300;
}

.legal-hero-sub {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
    color: rgba(245, 240, 232, 0.7);
    max-width: 600px;
}

/* Decoración hero — círculos */

.legal-hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 500px;
    z-index: 1;
    opacity: 0.5;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.deco-navy {
    width: 400px;
    height: 400px;
    top: -100px;
    right: 50px;
    background: radial-gradient(circle, var(--scarlet) 0%, transparent 70%);
    animation: floatDeco 12s ease-in-out infinite;
}

.deco-scarlet {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -50px;
    background: radial-gradient(circle, var(--bone-2) 0%, transparent 70%);
    animation: floatDeco 14s ease-in-out infinite reverse;
}

@keyframes floatDeco {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -40px); }
}

@media (max-width: 768px) {
    .legal-hero { padding: 140px 24px 80px; }
    .legal-hero-decoration { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   INTRO
   ═══════════════════════════════════════════════════════════════════ */

.legal-intro {
    background: var(--bone);
    padding: 100px 40px 60px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-paragraph {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 400;
}

.intro-paragraph strong {
    font-weight: 600;
    color: var(--navy);
}

@media (max-width: 768px) {
    .legal-intro { padding: 60px 24px 40px; }
    .intro-paragraph { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENIDO PRINCIPAL
   ═══════════════════════════════════════════════════════════════════ */

.legal-content {
    background: var(--bone);
    padding: 40px 40px 120px;
}

.legal-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(10, 30, 60, 0.08);
}

.section-number {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    color: var(--scarlet);
    letter-spacing: -2px;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--navy);
    flex: 1;
}

.section-body {
    padding-left: 0;
}

.section-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
}

.section-body p strong {
    font-weight: 600;
    color: var(--navy);
}

.legal-subtitle {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 20px;
    color: var(--scarlet);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 400;
}

/* ── Bullets ── */

.legal-bullets {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
}

.legal-bullets li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.legal-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--scarlet);
    border-radius: 50%;
}

.legal-bullets li strong {
    font-weight: 600;
    color: var(--navy);
}

/* ── Highlight box (lo que NO recolectamos) ── */

.highlight-box {
    background: rgba(46, 125, 82, 0.06);
    border-left: 3px solid #2E7D52;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #2E7D52;
    margin-top: 2px;
}

.highlight-row span {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
}

/* ── Provider list (proveedores externos) ── */

.provider-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.provider-card {
    background: rgba(10, 30, 60, 0.04);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 30, 60, 0.1);
}

.provider-name {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.provider-location {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--scarlet);
    display: block;
    margin-bottom: 12px;
}

.provider-purpose {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .provider-list { grid-template-columns: 1fr; }
}

/* ── Contact card ── */

.contact-card {
    background: rgba(10, 30, 60, 0.04);
    border-radius: 18px;
    padding: 8px 24px;
    margin: 24px 0;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(10, 30, 60, 0.06);
}

.contact-row:last-child { border-bottom: none; }

.contact-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-align: right;
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        gap: 8px;
    }
    .section-number { font-size: 36px; }
    .section-title { font-size: 24px; }
    .legal-section { margin-bottom: 60px; }

    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .contact-value { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════
   CIERRE
   ═══════════════════════════════════════════════════════════════════ */

.legal-closing {
    background: var(--bone);
    text-align: center;
    padding: 60px 40px 100px;
    max-width: 600px;
    margin: 0 auto;
}

.closing-divider {
    width: 60px;
    height: 2px;
    background: var(--scarlet);
    opacity: 0.5;
    margin: 0 auto 32px;
}

.closing-text {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 32px;
}

.closing-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--scarlet);
}

.closing-brand em {
    font-family: var(--font-italic);
    font-style: italic;
    color: var(--muted);
    letter-spacing: 1px;
    font-weight: 400;
}