/* legal.css — Faventy
   Estilos compartidos por las páginas legales y la portada.
   Van en un archivo aparte porque son tres páginas: duplicarlo
   sería mantenerlo tres veces. */

:root {
  --primary: #707cf6;
  --secondary: #2739f1;
  --accent: #ff9a00;
  --text: #16171d;
  --muted: #6b6f7d;
  --border: #e6e7ee;
  --bg: #fafafd;
  --surface: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Halo de marca en la cabecera */
.glow {
  position: fixed;
  top: -35%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 55vh;
  background: radial-gradient(circle at 50% 50%,
              rgba(112,124,246,0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Cabecera */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.brand .mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.back {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.back:hover { text-decoration: underline; }

/* Títulos */

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}

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

h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 44px 0 14px;
  scroll-margin-top: 24px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 10px;
}

p { margin-bottom: 14px; }

/* Listas */

ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

/* Enlaces y énfasis */

a { color: var(--primary); }

strong { font-weight: 650; }

code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9em;
  background: rgba(112,124,246,0.10);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Tablas */

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }

/* Bloques destacados */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 24px 0;
}

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

.callout {
  border-left: 3px solid var(--primary);
  background: rgba(112,124,246,0.06);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout.warm {
  border-left-color: var(--accent);
  background: rgba(255,154,0,0.07);
}

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

/* Índice */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.toc ol {
  margin: 0 0 0 20px;
  font-size: 14px;
}

.toc li { margin-bottom: 5px; }

.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Pie */

footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

footer .links { margin-bottom: 12px; }
footer a { margin-right: 16px; text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer address {
  font-style: normal;
  line-height: 1.55;
}

/* Móvil */

@media (max-width: 600px) {
  .page { padding: 24px 18px 64px; }
  h1 { font-size: 27px; }
  h2 { font-size: 19px; margin-top: 36px; }
  table { font-size: 13px; }
  th, td { padding: 10px 11px; }
}
