/* ═══════════════════════════════════════════
   LEGAL — Privacidad, Eliminación de datos, etc.
   Estilo sobrio y legible, coherente con la marca Kubu.
   ═══════════════════════════════════════════ */

.legal-hero {
  padding: calc(var(--nav-h) + 64px) 24px 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  border-bottom: 1px solid #eee;
  text-align: center;
}
.legal-hero .legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red, #dc2626);
  background: rgba(220, 38, 38, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.legal-hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  line-height: 1.15;
  margin: 0 0 12px;
}
.legal-hero .legal-updated {
  color: #6b7280;
  font-size: 0.95rem;
}

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-toc {
  background: var(--bg-light);
  border: 1px solid #eee;
  border-radius: var(--radius-lg, 20px);
  padding: 22px 26px;
  margin-bottom: 44px;
}
.legal-toc h2 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin: 0 0 14px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.legal-toc li {
  margin-bottom: 8px;
}
.legal-toc a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition, 0.2s);
}
.legal-toc a:hover {
  color: var(--red, #dc2626);
}

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal-section h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--dark);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-section h2 .num {
  color: var(--red, #dc2626);
  font-size: 1.1rem;
  font-weight: 700;
}
.legal-section h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin: 26px 0 10px;
}
.legal-section p,
.legal-section li {
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.75;
}
.legal-section p {
  margin: 0 0 14px;
}
.legal-section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-section li {
  margin-bottom: 8px;
}
.legal-section strong {
  color: var(--dark);
}
.legal-section a {
  color: var(--red, #dc2626);
  text-decoration: none;
  font-weight: 600;
}
.legal-section a:hover {
  text-decoration: underline;
}

/* Tarjeta destacada (contacto / pasos) */
.legal-card {
  background: var(--bg-light);
  border: 1px solid #eee;
  border-left: 4px solid var(--red, #dc2626);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 22px 0;
}
.legal-card p:last-child {
  margin-bottom: 0;
}

/* Pasos numerados grandes (para eliminación de datos) */
.legal-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0;
}
.legal-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.legal-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red, #dc2626);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.legal-steps li strong {
  display: block;
  margin-bottom: 2px;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.legal-contact-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition, 0.2s), box-shadow var(--transition, 0.2s);
}
.legal-contact-grid a:hover {
  border-color: var(--red, #dc2626);
  box-shadow: var(--shadow-sm);
}
.legal-contact-grid i {
  color: var(--red, #dc2626);
  font-size: 1.15rem;
}

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}
