/* ═══════════════════════════════════════════════════════════════
   legal-core.css — reusable legal page styles
═══════════════════════════════════════════════════════════════ */

.legal-wrap {
  --_primary: var(--primary, #1e3a8a);
  --_ink: var(--ink, #1a1a1a);
  --_ink-light: var(--ink-light, #4a5568);
  --_muted: var(--muted, #718096);
  --_border: var(--border, #e2e8f0);
  --_border-light: var(--border-light, #f0f4f8);
  --_surface: var(--surface, #ffffff);
  --_radius: var(--radius, 8px);
  --_shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.08));
  --_font-display: var(--font-display, Georgia, "Times New Roman", serif);
  --_vl-blue: var(--vl-blue, #1e3a8a);

  max-width: 760px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.legal-kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--_vl-blue);
  margin-bottom: .6rem;
}

.legal-title {
  font-family: var(--_font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--_ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--_border);
}

.legal-intro {
  font-size: 1rem;
  color: var(--_ink-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.legal-index {
  background: #f8fafc;
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--_shadow);
}

.legal-index > p {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--_muted);
  margin-bottom: .6rem;
}

.legal-index ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.legal-index ol li a {
  color: var(--_primary);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}

.legal-index ol li a:hover {
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

.legal-section h2 {
  font-family: var(--_font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--_ink);
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--_primary);
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--_ink);
  margin: 1.4rem 0 .5rem;
}

.legal-section p,
.legal-section li {
  font-size: .95rem;
  color: var(--_ink-light);
  line-height: 1.75;
  margin-bottom: .7rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.3rem;
  margin-bottom: .7rem;
}

.legal-section li {
  margin-bottom: .3rem;
}

.legal-section a {
  color: var(--_primary);
  text-decoration: underline;
}

.legal-table,
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
}

.legal-table tr {
  border-bottom: 1px solid var(--_border-light);
}

.legal-table td {
  padding: .55rem .5rem;
  vertical-align: top;
  color: var(--_ink-light);
  line-height: 1.5;
  font-size: .92rem;
}

.legal-table td:first-child {
  font-weight: 600;
  color: var(--_ink);
  white-space: nowrap;
  padding-right: 1.2rem;
  min-width: 160px;
}

.cookie-table th {
  background: var(--_primary);
  color: #fff;
  font-weight: 600;
  padding: .5rem .75rem;
  text-align: left;
  font-size: .8rem;
  letter-spacing: .05em;
}

.cookie-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--_border-light);
  color: var(--_ink-light);
  vertical-align: top;
  font-size: .88rem;
}

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

.legal-rellenar {
  background: #fff7e6;
  border-radius: 3px;
  padding: .1em .35em;
  font-size: .85em;
  font-weight: 600;
  color: #9a6700;
}

@media (max-width: 640px) {
  .legal-wrap {
    margin: 2rem auto 3rem;
    padding: 0 1.1rem;
  }

  .legal-table td:first-child {
    min-width: 120px;
  }
}
