/* ==============================================
   HIDER · legales.css
   Ubicación: /frontend/css/legales.css
   Descripción: Estilos para las páginas legales:
   Términos · Privacidad · Reclamaciones
   ============================================== */

.legal-hero {
  background: var(--brown-deep);
  padding: 80px 0 60px;
}

.legal-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(252, 244, 232, 0.5);
  margin-bottom: 14px;
  display: block;
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 16px;
}

.legal-hero__meta {
  font-size: 13px;
  color: rgba(252, 244, 232, 0.5);
}

/* ── Layout ──────────────────────────────────── */
.legal-body {
  padding: 64px 0 100px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Índice lateral ──────────────────────────── */
.legal-index {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-index__title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.legal-index__link {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: all var(--duration);
  border-left: 2px solid transparent;
}

.legal-index__link:hover {
  color: var(--brown);
  background: var(--cream-soft);
  border-left-color: var(--brown);
}

.legal-index__link.active {
  color: var(--brown);
  border-left-color: var(--brown);
  background: var(--cream-soft);
}

/* ── Contenido ───────────────────────────────── */
.legal-content { max-width: 760px; }

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.legal-section:last-child { margin-bottom: 0; }

.legal-section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--brown-deep);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-section strong { color: var(--ink); }

.legal-section a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-highlight {
  background: var(--cream-soft);
  border-left: 3px solid var(--brown);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal-highlight p {
  margin: 0;
  font-size: 14px;
}

/* ── Formulario reclamaciones ────────────────── */
.reclamacion-form {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}

.reclamacion-form .field { margin-bottom: 18px; }

.reclamacion-section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.reclamacion-section-label:first-child { margin-top: 0; }

.reclamacion-tipo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.tipo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--duration);
}

.tipo-option:has(input:checked) {
  border-color: var(--brown);
  background: var(--cream-soft);
}

.tipo-option input { display: none; }

.tipo-option__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.tipo-option__desc {
  font-size: 12px;
  color: var(--muted);
}

.reclamacion-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.reclamacion-success svg { color: #16a34a; }

.reclamacion-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brown-deep);
}

.reclamacion-success p { color: var(--muted); font-size: 14px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-index { display: none; }
  .legal-body  { padding: 40px 0 72px; }
}

@media (max-width: 600px) {
  .legal-hero          { padding: 56px 0 40px; }
  .reclamacion-form    { padding: 24px 20px; }
  .reclamacion-tipo    { grid-template-columns: 1fr; }
}
/* ══ DARK MODE — legales ══ */
[data-theme="dark"] .legal-hero             { background: var(--surface); }
[data-theme="dark"] .legal-hero__title      { color: var(--text); }
[data-theme="dark"] .legal-hero__eyebrow    { color: var(--muted); }
[data-theme="dark"] .legal-hero__meta       { color: var(--muted); }
[data-theme="dark"] .legal-index            { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .legal-index__title     { color: var(--text); }
[data-theme="dark"] .legal-index__link      { color: var(--muted); }
[data-theme="dark"] .legal-index__link:hover{ color: var(--gold-light); }
[data-theme="dark"] .legal-section__title   { color: var(--text); }
[data-theme="dark"] .legal-highlight        { background: var(--surface-2); border-left-color: var(--gold-light); }
[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content li       { color: var(--muted); }
[data-theme="dark"] .legal-content strong   { color: var(--text); }
[data-theme="dark"] .legal-content a        { color: var(--gold-light); }

/* Reclamaciones */
[data-theme="dark"] .reclamacion-form       { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .reclamacion-section-label { color: var(--muted); }
[data-theme="dark"] .tipo-option            { border-color: var(--line); background: var(--surface-2); }
[data-theme="dark"] .tipo-option__title     { color: var(--text); }
[data-theme="dark"] .tipo-option__desc      { color: var(--muted); }
[data-theme="dark"] .tipo-option:has(input:checked) { background: var(--surface); border-color: var(--gold-light); }