/* legal.css — Estilos compartidos para páginas legales (privacidad, términos, disclaimer) */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #08080a;
    --bg-2: #0f0f12;
    --bg-3: #14141a;
    --red: var(--brand);
    --red-soft: rgba(255, 91, 20, 0.08);
    --red-border: rgba(255, 91, 20, 0.3);
    --text: #ffffff;
    --text-muted: #b8b8c4;
    --muted: #a0a0ab;
    --dim: #6b6b78;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────── */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 8, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-brand {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
}

.legal-brand span {
    color: var(--red);
}

.legal-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.legal-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.legal-nav a.active {
    color: var(--text);
    background: var(--red-soft);
    border-color: var(--red-border);
}

/* ── Main wrapper ────────────────────────────────────────── */
.legal-wrap {
    flex: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 12px;
    border: 1px solid var(--red-border);
    background: var(--red-soft);
    color: #ff6060;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
}

.legal-wrap h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.legal-updated {
    color: var(--dim);
    font-size: 13px;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* ── Callout box ─────────────────────────────────────────── */
.legal-callout {
    background: var(--red-soft);
    border: 1px solid var(--red-border);
    border-left: 3px solid var(--red);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 0 0 48px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.legal-callout strong {
    color: var(--text);
    display: inline-block;
    margin-right: 6px;
}

/* ── Section ─────────────────────────────────────────────── */
.legal-section {
    margin-bottom: 44px;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    line-height: 1.3;
}

.legal-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 22px;
    margin-bottom: 10px;
}

.legal-section p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    color: var(--text-muted);
    font-size: 15px;
    padding-left: 22px;
    margin-bottom: 14px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section li::marker {
    color: var(--red);
}

.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

.legal-section a {
    color: #ff6060;
    text-decoration: underline;
    text-decoration-color: rgba(255, 91, 20, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.legal-section a:hover {
    text-decoration-color: var(--red);
}

/* ── Footer ──────────────────────────────────────────────── */
.legal-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--dim);
}

.legal-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.legal-footer a:hover {
    color: var(--text);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    .legal-header { padding: 12px 16px; }
    .legal-brand { font-size: 18px; }
    .legal-nav a { padding: 6px 10px; font-size: 11px; }
    .legal-wrap { padding: 40px 18px 64px; }
    .legal-section h2 { font-size: 19px; }
    .legal-section p,
    .legal-section ul,
    .legal-section ol { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; }
}
