/* Estilos para los documentos legales de maticai.app (privacidad y terminos).
   Paleta tomada de la landing. Pensado para lectura larga: columna angosta,
   interlineado generoso e indice lateral fijo en pantallas grandes. */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f172a;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --text: #dbe3ee;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(255, 255, 255, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-size: 16.5px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 14, 26, .78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.05rem; color: #fff; text-decoration: none;
  letter-spacing: -.01em;
}

.nav-logo-icon { width: 26px; height: 26px; object-fit: contain; }
.nav-logo span { color: var(--blue-light); }
.nav-cta {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .88rem;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-light); }

/* ---------- Layout ---------- */
.shell {
  max-width: 1180px; margin: 0 auto;
  padding: 7.5rem clamp(1.25rem, 4vw, 2rem) 4rem;
  display: grid; grid-template-columns: 1fr; gap: 3.5rem;
}
@media (min-width: 1080px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr); }
}

/* ---------- Indice lateral ---------- */
.toc { display: none; }
@media (min-width: 1080px) {
  .toc {
    display: block; position: sticky; top: 7.5rem; align-self: start;
    max-height: calc(100vh - 10rem); overflow-y: auto;
    border-left: 1px solid var(--line); padding-left: 1.15rem;
  }
  .toc h2 {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted-2); margin-bottom: .9rem; font-weight: 650;
  }
  .toc a {
    display: block; color: var(--muted); text-decoration: none;
    font-size: .87rem; line-height: 1.45; padding: .3rem 0;
    transition: color .15s;
  }
  .toc a:hover { color: var(--blue-light); }
}

/* ---------- Documento ---------- */
.doc { max-width: 720px; }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .12em; color: var(--blue-light);
  background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .25);
  padding: .3rem .7rem; border-radius: 100px; margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.12;
  font-weight: 800; letter-spacing: -.025em; color: #fff; margin-bottom: .8rem;
}
.subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.75rem; }

h2 {
  font-size: 1.3rem; font-weight: 700; color: #fff;
  letter-spacing: -.015em; margin: 3.25rem 0 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}
h2 .num {
  color: var(--blue); font-variant-numeric: tabular-nums;
  margin-right: .5rem; font-weight: 700;
}
h3 {
  font-size: 1.02rem; font-weight: 650; color: #fff;
  margin: 1.9rem 0 .6rem; letter-spacing: -.005em;
}

p { margin-bottom: 1.1rem; }
strong { color: #fff; font-weight: 650; }
a { color: var(--blue-light); text-decoration: none; border-bottom: 1px solid rgba(96,165,250,.35); }
a:hover { border-bottom-color: var(--blue-light); }

ul { margin: 0 0 1.35rem; padding-left: 1.1rem; list-style: none; }
li { position: relative; padding-left: .95rem; margin-bottom: .55rem; }
li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
  opacity: .7;
}

/* ---------- Tabla ---------- */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 420px; }
th {
  text-align: left; color: #fff; font-weight: 650; padding: .7rem .9rem;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ---------- Destacados ---------- */
.callout {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0; padding: 1.25rem 1.45rem; margin: 1.9rem 0;
}
.callout.warn { border-left-color: #f59e0b; }
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: .5rem;
}
.callout.warn .label { color: #fbbf24; }

/* ---------- Pie ---------- */
.doc-footer {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
  align-items: center; font-size: .9rem; color: var(--muted-2);
}
.doc-footer a { color: var(--muted); border: none; }
.doc-footer a:hover { color: var(--blue-light); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.5rem; text-align: center;
  color: var(--muted-2); font-size: .88rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-bottom: .9rem; }
footer.site a { color: var(--muted); border: none; }
footer.site a:hover { color: var(--blue-light); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding-top: 6rem; }
  h2 { margin-top: 2.5rem; }
}
