/* ============ Legal pages — estilo coherente con landing ============ */
:root {
  --text: #0a0a0a;
  --text-soft: #404040;
  --text-muted: #737373;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --border: #e8e8e8;
  --border-soft: #f0f0f0;
  --accent: #16a34a;
  --warn: #d97706;
  --bad: #ef4444;
  --info: #2563eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--accent); }

/* Container */
.legal-container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.legal-container--narrow { max-width: 760px; }

/* Nav */
.legal-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  z-index: 50;
}
.legal-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.legal-brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.04em;
  font-family: Arial Black, Arial, sans-serif;
}
.legal-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.legal-brand__text strong { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.legal-brand__text span { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.legal-back {
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.legal-back:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Main */
.legal-main {
  padding: 60px 0 80px;
}
.legal-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.legal-title {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  color: var(--text);
}
.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-meta strong { color: var(--text); }

.legal-main h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
  color: var(--text);
  padding-top: 16px;
}
.legal-main h2:first-of-type { padding-top: 0; }
.legal-main h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
  color: var(--text);
}
.legal-main p {
  margin-bottom: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}
.legal-main p strong { color: var(--text); font-weight: 700; }
.legal-main ul, .legal-main ol {
  padding-left: 22px;
  margin: 10px 0 18px;
  color: var(--text-soft);
}
.legal-main ul li, .legal-main ol li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal-main ul li strong, .legal-main ol li strong { color: var(--text); }

/* Callouts */
.legal-callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--text);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.legal-callout strong { color: var(--text); font-weight: 700; }
.legal-callout--info {
  background: #eff6ff;
  border-left-color: var(--info);
  color: #1e3a8a;
}
.legal-callout--warn {
  background: #fffbeb;
  border-left-color: var(--warn);
  color: #78350f;
}
.legal-callout--good {
  background: #ecfdf5;
  border-left-color: var(--accent);
  color: #065f46;
}

/* Tablas (cuando aplican) */
.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.legal-main table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13px;
}
.legal-main thead { background: var(--bg-alt); }
.legal-main th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.legal-main td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  vertical-align: top;
}
.legal-main tr:last-child td { border-bottom: 0; }

/* Footer */
.legal-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 28px;
  margin-top: 60px;
  text-align: center;
}
.legal-footer p {
  font-size: 13px;
  margin-bottom: 14px;
}
.legal-footer p strong { color: #fff; }
.legal-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.legal-footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 3px;
}
.legal-footer__links a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}
.legal-footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Responsive */
@media (max-width: 760px) {
  .legal-title { font-size: 32px; }
  .legal-main h2 { font-size: 20px; }
  .legal-main h3 { font-size: 16px; }
  .legal-container { padding: 0 20px; }
  .legal-main { padding: 40px 0 60px; }
  .legal-footer__links { gap: 16px; }
}

/* Print friendly */
@media print {
  .legal-nav, .legal-back, .legal-footer { display: none; }
  body { font-size: 11pt; line-height: 1.5; }
  .legal-main { padding: 0; }
  .legal-callout { break-inside: avoid; }
}
