/* =============================================================
   PÁGINAS LEGALES (aviso legal, privacidad, cookies) + avisos de
   consentimiento (casilla del formulario y mapa bajo permiso)
   ============================================================= */
.legal {
  padding: clamp(7.5rem, 14vw, 10rem) 0 var(--section-py);
  background: var(--bg);
}
.legal-inner { max-width: 780px; }
.legal h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: .5rem 0 .75rem;
}
.legal h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }
.legal-updated { font-size: .8rem; color: var(--cream-3); margin: 0 0 2.5rem; }
.legal h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  margin: 2.5rem 0 .75rem;
  letter-spacing: -0.01em;
}
.legal p, .legal li {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--cream-2);
}
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.legal strong { color: var(--cream); font-weight: 500; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: .9rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
  color: var(--cream-2);
}
.legal-table th { color: var(--cream); font-weight: 500; width: 34%; }
.legal-table-wide th { width: auto; background: var(--bg-2); }
@media (max-width: 640px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: 0; padding-bottom: 0; }
  .legal-table-wide thead { display: none; }
}
.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.legal-box p:last-child { margin-bottom: 0; }

/* Casilla de aceptación del formulario */
.form-consent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: .25rem 0 1.25rem;
}
.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem; height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-consent label {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--cream-2);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  cursor: pointer;
}
.form-consent a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }

/* Banner de cookies (consent.js). Los tres botones tienen el mismo aspecto a propósito. */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 1rem;
  display: flex; justify-content: center;
  pointer-events: none;
}
.consent-inner {
  pointer-events: auto;
  width: 100%; max-width: 860px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(20, 40, 60, .18);
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.consent-text { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--cream-2); }
.consent-text a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.consent-ajustes { display: flex; flex-direction: column; gap: .75rem; }
.consent-ajustes[hidden] { display: none; }
.consent-opt { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; line-height: 1.5; color: var(--cream-2); cursor: pointer; }
.consent-opt input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--gold); }
.consent-botones { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.consent-btn {
  flex: 1 1 140px;
  padding: .75rem 1.25rem;
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
}
@media (hover: hover) { .consent-btn:hover { background: var(--cream); color: var(--bg); } }
.consent-reabrir {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}

/* Mapa de Google: solo se carga si la persona lo pide */
.ctc-map-consent {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-2);
}
.ctc-map-consent p { max-width: 460px; margin: 0; font-size: .85rem; line-height: 1.6; color: var(--cream-2); }
.ctc-map-consent a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }

