/* ─────────────────────────────────────────────────────────────────────────
 * Brivo Landing · Legal pages CSS
 * Standalone, no depende de styles.css de la home.
 * Tokens espejados de la landing principal para consistencia visual.
 * ─────────────────────────────────────────────────────────────────────── */
:root {
  --brand: #7C3AED;
  --brand-deep: #3B0F7D;
  --brand-dark: #5B21B6;
  --brand-light: #F4F2FA;
  --accent: #84CC16;
  --accent-soft: #B6F03A;
  --ink: #1E0A3C;
  --ink-2: #6B47A8;
  --ink-hint: #A78BCA;
  --on-dark: #FFFFFF;
  --bg: #FAF9FF;
  --surface: #FFFFFF;
  --border: #ECE7F6;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header con logo + back ───────────────────────────────────────────── */
header.legal-header {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: var(--on-dark);
  padding: 24px 0 80px;
}
header.legal-header .wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.back-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}
.back-link:hover { color: var(--on-dark); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
h1.legal-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.updated {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Content body ──────────────────────────────────────────────────────── */
main.legal-content {
  max-width: 760px;
  margin: -48px auto 0;
  padding: 0 24px 80px;
}
.legal-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 48px 40px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(60, 30, 130, 0.06);
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
h2:first-child { margin-top: 0; }

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

p, li {
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

ul, ol {
  margin: 12px 0 20px 24px;
}
ul li, ol li { margin-bottom: 8px; }

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}
a:hover { border-bottom-color: var(--brand); }

strong, b {
  color: var(--ink);
  font-weight: 700;
}

.note {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 24px 0;
  font-size: 14.5px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer.legal-footer {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-hint);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
footer.legal-footer a {
  color: var(--brand);
  border: none;
}

@media (max-width: 560px) {
  header.legal-header { padding: 18px 0 56px; }
  .legal-card { padding: 32px 22px; border-radius: 20px; }
  main.legal-content { margin-top: -32px; }
}
