/* ==========================================================================
   kovertiz - MASTER TERMS.CSS (Unified System)
   ========================================================================== */

/* 1. VARIABLES & RESET */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --bg: #030610;
    --card: #0d1221;
    --primary: #818cf8;
    --primary-glow: rgba(129, 140, 248, 0.2);
    --text: #f9fafb;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 2. HELPERS */
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* 3. HERO: CENTRAL LAYOUT */
.legal-hero-advanced {
    padding: 140px 0 100px;
    background: radial-gradient(circle at 50% 30%, rgba(129, 140, 248, 0.12), transparent 70%);
    text-align: center;
}

.legal-hero-advanced .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kicker {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content {
    max-width: 850px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los hijos horizontalmente */
    text-align: center;  /* Centra las líneas de texto */
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto; /* El 'auto' en los laterales es clave para el centrado */
    text-align: center;       /* Refuerza que el texto esté centrado internamente */
    line-height: 1.6;
}
.hero-pillars {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-pillars li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.hero-pillars li i { color: var(--primary); }

/* 4. TERMINAL VISUAL */
.hero-visual-terminal { width: 100%; max-width: 650px; margin: 0 auto; }
.terminal-window {
    background: #0d1221;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    overflow: hidden;
}
.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 12px 18px;
    display: flex;
    gap: 8px;
}
.controls span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.terminal-body { padding: 25px; font-family: monospace; font-size: 13px; }
.cmd { color: var(--primary); }
.ok { color: #27c93f; }
.progress-bar { height: 4px; background: rgba(255,255,255,0.05); margin: 10px 0; overflow: hidden; }
.progress-bar .fill { height: 100%; width: 100%; background: var(--primary); animation: fillProgress 2s ease forwards; }

@keyframes fillProgress { from { width: 0; } to { width: 100%; } }

/* 5. LEGAL LAYOUT SYSTEM (AQUÍ ESTABA EL ERROR) */
.legal-section { padding: 100px 0; border-top: 1px solid var(--border); }

.legal-layout {
    display: grid;
    grid-template-columns: 350px 1fr; /* Sidebar fija y contenido flexible */
    gap: 100px;
    align-items: start;
}

.legal-header-side {
    position: sticky;
    top: 120px; /* Se queda pegado al hacer scroll */
}

.legal-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 30px; }

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.legal-note {
    background: rgba(129, 140, 248, 0.05);
    border-left: 3px solid var(--primary);
    padding: 25px;
    border-radius: 0 12px 12px 0;
    font-size: 14px;
}

.highlight-disclaimer {
    background: rgba(129, 140, 248, 0.1) !important;
    position: relative;
    padding-top: 45px !important;
}

.highlight-disclaimer i {
    position: absolute;
    top: 15px;
    left: 25px;
    color: var(--primary);
}

/* 6. CONTENT ARTICLES */
.legal-entry { display: flex; gap: 40px; margin-bottom: 80px; }
.entry-num { font-size: 1.2rem; font-weight: 800; color: var(--primary); opacity: 0.2; }
.entry-body h3 { font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.entry-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }

.legal-list { list-style: none; padding-left: 5px; }
.legal-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.legal-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 7. RESPONSIVE */
@media (max-width: 1100px) {
    .legal-layout { grid-template-columns: 1fr; gap: 60px; }
    .legal-header-side { position: relative; top: 0; }
    .hero-pillars { gap: 10px; }
}

@media (max-width: 768px) {
    .legal-entry { flex-direction: column; gap: 10px; }
}