/* Estilos compartidos de las páginas legales */
:root {
  --ink: #14181f;
  --ink-soft: #4b5160;
  --ink-faint: #8891a3;
  --paper: #ffffff;
  --paper-alt: #f7f9fc;
  --line: #e4e9f1;
  --gray-100: #f1f3f6;
  --gray-200: #e4e9f1;
  --gray-700: #374151;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper-alt);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}
a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 18px; } }

/* ============ HEADER (igual que index.html) ============ */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand small {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500; font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
nav.primary { display: flex; align-items: center; gap: 28px; }
nav.primary a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
nav.primary a:hover { color: var(--ink); border-color: var(--ink-faint); }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  nav.primary { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
}

/* ============ CONTENT ============ */
main { padding: 48px 0 64px; }
.doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 600px) { .doc { padding: 26px 20px; } }
.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.doc .updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 32px; }
.doc section { margin-bottom: 28px; }
.doc h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.doc p { color: var(--gray-700); margin-bottom: 10px; font-size: 15px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 8px 0 8px 20px; color: var(--gray-700); font-size: 15px; }
.doc li { margin-bottom: 4px; }
.box {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 16px 18px;
}
.box p { margin-bottom: 6px; }
.box p:last-child { margin-bottom: 0; }
.back-row { text-align: center; margin-top: 32px; }
.btn-back {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.btn-back:hover { background: var(--gray-700); color: white; }

/* ============ FOOTER ============ */
footer.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
}
footer.legal-footer p { font-size: 13px; color: var(--ink-faint); }

nav.primary a.nav-cv { color: #fff; background: #2563eb; padding: 7px 14px; border-radius: 8px; border-bottom: 0; }
nav.primary a.nav-cv:hover { color: #fff; background: #1d4ed8; }

@media (max-width: 880px) {
  body.nav-open nav.primary { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 10px 18px 18px; border-bottom: 1px solid #e4e9f1; box-shadow: 0 18px 30px -18px rgba(20,24,31,.35); z-index: 60; }
  body.nav-open nav.primary a { padding: 12px 6px; border-bottom: 1px solid #eef1f6; }
  body.nav-open nav.primary a.nav-cv { margin-top: 8px; text-align: center; border-bottom: 0; }
}
