/* Política de datos y página 404 (0.14.0). Mobile-first. Instrument Sans y colores del sitio nuevo
   (tokens en c21-design-tokens.css). Sin ventanas emergentes ni capas fijas que tapen el contenido. */

.c21-legal, .c21-404 { font-family: 'Instrument Sans', sans-serif; color: #1A1A1A; }

/* ── Cabecera ── */
.c21-legal .c21-results-hero__inner { padding: 22px 20px 26px; gap: 12px; }
.c21-legal .c21-results-hero__title { font-size: 28px; line-height: 1.12; }
.c21-legal-meta { margin: 0; font-size: 15px; color: #D8D3C7 !important; }
.c21-legal-actions { margin-top: 4px; }
.c21-legal-pdf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: #BEAF87; color: #111 !important; font-size: 15px; font-weight: 700; text-decoration: none;
}
.c21-legal-pdf:hover { background: #cdbf9a; }

/* ── Cuerpo ── */
.c21-legal-body { max-width: 1120px; margin: 0 auto; padding: 18px 20px 56px; background: #F6F4EF; }
.c21-legal-article { min-width: 0; font-size: 16px; line-height: 1.7; color: #2A2A28; }
.c21-legal-article h2 {
  margin: 36px 0 12px; padding-top: 4px; font-size: 22px; line-height: 1.25; font-weight: 700;
  letter-spacing: -.01em; color: #141414; scroll-margin-top: 90px;
}
.c21-legal-article h2:first-child { margin-top: 8px; }
.c21-legal-article p { margin: 0 0 14px; }
.c21-legal-article ul, .c21-legal-article ol { margin: 0 0 16px; padding-left: 22px; }
.c21-legal-article li { margin: 0 0 8px; }
.c21-legal-article strong { color: #141414; }
.c21-legal-article a { color: #7A6A3C; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.c21-legal-article a:hover { color: #5d4f2a; }

/* ── Índice: plegable arriba en celular, fijo al lado en computador ── */
.c21-legal-toc {
  margin: 0 0 22px; border: 1px solid #E6E2D8; border-radius: 16px; background: #fff; overflow: hidden;
}
.c21-legal-toc summary {
  cursor: pointer; padding: 14px 18px; font-size: 15px; font-weight: 700; color: #141414; list-style: none;
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
}
.c21-legal-toc summary::-webkit-details-marker { display: none; }
.c21-legal-toc summary::after { content: '+'; font-size: 22px; line-height: 1; color: #7A6A3C; }
.c21-legal-toc[open] summary::after { content: '–'; }
.c21-legal-toc nav { padding: 0 8px 12px; }
.c21-legal-toc ul { list-style: none; margin: 0; padding: 0; }
.c21-legal-toc li { margin: 0; }
.c21-legal-toc a {
  display: block; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.35;
  color: #3a3833; text-decoration: none;
}
.c21-legal-toc a:hover { background: #F6F4EF; }
.c21-legal-toc a[aria-current="true"] { background: #F1ECDD; color: #141414; font-weight: 600; }

/* ── Tablas: con desplazamiento horizontal en pantallas medianas, apiladas en celular ── */
.c21-legal-tablewrap { margin: 6px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.c21-legal-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.5; }
.c21-legal-table th, .c21-legal-table td { padding: 11px 14px; border: 1px solid #E6E2D8; text-align: left; vertical-align: top; }
.c21-legal-table thead th { background: #111; color: #fff; font-weight: 600; font-size: 13.5px; }
.c21-legal-table tbody tr:nth-child(even) td { background: #FBFAF6; }

@media (max-width: 640px) {
  .c21-legal-tablewrap { overflow: visible; }
  .c21-legal-table, .c21-legal-table tbody, .c21-legal-table tr, .c21-legal-table td { display: block; width: 100%; }
  .c21-legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .c21-legal-table { background: transparent; }
  .c21-legal-table tr { margin: 0 0 12px; border: 1px solid #E6E2D8; border-radius: 14px; background: #fff; overflow: hidden; }
  .c21-legal-table td { border: 0; border-bottom: 1px solid #F0EDE4; padding: 10px 14px; }
  .c21-legal-table td:last-child { border-bottom: 0; }
  .c21-legal-table tbody tr:nth-child(even) td { background: transparent; }
  .c21-legal-table td::before {
    content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; color: #7A6A3C;
  }
}

/* ── Computador ── */
@media (min-width: 960px) {
  .c21-legal .c21-results-hero__inner { max-width: 1120px; padding: 32px 40px 34px; }
  .c21-legal .c21-results-hero__title { font-size: 40px; }
  .c21-legal-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding: 32px 40px 72px; }
  .c21-legal-toc { position: sticky; top: 24px; margin: 0; max-height: calc(100vh - 48px); overflow-y: auto; }
  .c21-legal-toc summary { cursor: default; pointer-events: none; }
  .c21-legal-toc summary::after { content: none; }
  .c21-legal-article { max-width: 780px; font-size: 17px; }
}

/* ── 404 ── */
.c21-404 { background: #F6F4EF; }
.c21-404__inner { max-width: 720px; margin: 0 auto; padding: 56px 20px 80px; text-align: center; }
.c21-404__code { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7A6A3C; }
.c21-404__title { margin: 0 0 14px; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: #141414; }
.c21-404__text { margin: 0 0 26px; font-size: 17px; line-height: 1.55; color: #5A5750; }
.c21-404__links { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.c21-404__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid #141414; color: #141414 !important; background: transparent; font-size: 16px; font-weight: 600; text-decoration: none;
}
.c21-404__btn--primary { background: #111; border-color: #111; color: #fff !important; }
.c21-404__btn--primary:hover { background: #2a2a2a; }
.c21-404__back { margin: 26px 0 0; font-size: 15px; }
.c21-404__back a { color: #7A6A3C; text-decoration: none; font-weight: 600; }
@media (min-width: 640px) {
  .c21-404__title { font-size: 42px; }
  .c21-404__links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ── Impresión / guardar como PDF: limpio, sin encabezado ni pie ── */
@media print {
  .c21-site-header, .c21-site-footer, .c21-legal-toc, .c21-legal-actions, .c21-legal .c21-results-hero__crumbs,
  .c21-floating-wa, .c21-sofia, [class*="c21-sofia"], .c21-cookie { display: none !important; }
  html, body { background: #fff !important; }
  .c21-legal .c21-results-hero { background: #fff !important; color: #000 !important; }
  .c21-legal .c21-results-hero__inner { padding: 0 0 8px; max-width: none; }
  .c21-legal .c21-results-hero__title { color: #000 !important; font-size: 24pt; }
  .c21-legal-meta { color: #333 !important; }
  .c21-legal-body { display: block; background: #fff; padding: 0; max-width: none; }
  .c21-legal-article { max-width: none; font-size: 11pt; line-height: 1.5; color: #000; }
  .c21-legal-article h2 { font-size: 14pt; break-after: avoid; margin-top: 18pt; }
  .c21-legal-article a { color: #000; text-decoration: underline; }
  .c21-legal-article a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .c21-legal-article a[href^="mailto"]::after { content: none; }
  .c21-legal-table tr, .c21-legal-table th, .c21-legal-table td { break-inside: avoid; }
}
