/* =========================================================
   PÁGINAS LEGALES · Aviso de privacidad y Términos y condiciones
   Basado en vitrelum-legal/css/estilos.css, pero SOLO dentro de .hv-legal
   para no afectar el resto del sitio.
   ========================================================= */
.hv-legal {
  --lg-navy: #092143;
  --lg-blue: #1d4577;
  --lg-pale: #fff3d6;
  --lg-ink: #243746;
  --lg-muted: #5a6b78;
  --lg-line: #e1e8ed;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  color: var(--lg-ink);
  font-size: 16px;
  line-height: 1.75;
}
.hv-legal a { color: var(--lg-blue); text-decoration: underline; text-underline-offset: 3px; }
.hv-legal .legal-aside {
  position: sticky; top: 28px; padding: 28px;
  background: var(--lg-pale); border-radius: 16px;
}
.hv-legal .eyebrow { color: #b84708; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; margin: 0 0 12px; }
.hv-legal .legal-aside h2 { color: var(--lg-navy); font: 800 26px/1.2 Manrope, sans-serif; margin: 0 0 14px; letter-spacing: -0.7px; }
.hv-legal .legal-aside p:not(.eyebrow) { color: #4b5b6b; font-size: 14px; margin: 0 0 24px; }
.hv-legal .legal-aside a { font-size: 14px; font-weight: 700; color: var(--lg-navy); }
.hv-legal .legal-content {
  min-width: 0; background: #fff; padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--lg-line); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(18, 59, 99, 0.04);
}
.hv-legal .legal-content h1 { color: var(--lg-navy); font: 800 clamp(30px, 4vw, 44px)/1.15 Manrope, sans-serif; letter-spacing: -1.2px; margin: 0 0 12px; }
.hv-legal .updated { color: var(--lg-muted); font-size: 14px; margin: 0 0 30px; }
.hv-legal .legal-content p { margin: 0 0 18px; }
.hv-legal .legal-content section { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--lg-line); }
.hv-legal .legal-content h2 { color: var(--lg-navy); font: 800 21px/1.35 Manrope, sans-serif; margin: 0 0 12px; }
.hv-legal .legal-content ul { padding-left: 23px; margin: 0 0 18px; }
.hv-legal .legal-content li { margin: 7px 0; }
.hv-legal .legal-note { margin-top: 30px; padding: 18px 20px; border-left: 4px solid #ff7a2f; border-radius: 6px; background: #fff8ef; color: #5a4a36; font-size: 14px; }
@media (max-width: 850px) {
  .hv-legal { grid-template-columns: 1fr; gap: 24px; }
  .hv-legal .legal-aside { position: static; }
  .hv-legal .legal-aside h2 { font-size: 23px; }
}
@media (max-width: 560px) {
  .hv-legal .legal-content { padding: 24px 20px; }
}

/* ---------- Casilla de aceptación (registro y pago) ---------- */
.hv-consent { margin: 4px 0 18px !important; }
.hv-consent label,
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  display: flex !important; align-items: flex-start; gap: 12px;
  margin: 0 !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.5; color: #14253a; cursor: pointer;
}
.hv-consent input[type="checkbox"],
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: #092143;
}
.hv-consent a,
.woocommerce-terms-and-conditions-wrapper a { color: #092143; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.hv-consent a:hover,
.woocommerce-terms-and-conditions-wrapper a:hover { color: #b84708; }
.hv-consent .required,
.woocommerce-terms-and-conditions-wrapper .required { color: #b93434; text-decoration: none; }

/* ---------- Casillas: mismo aspecto en ingreso, registro y pago ---------- */
.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"],
.hv-consent input[type="checkbox"],
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-grid !important;
  place-content: center;
  flex: none;
  width: 24px !important;
  height: 24px !important;
  min-height: 0 !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 2px solid #8d9bb0 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"]:hover,
.hv-consent input[type="checkbox"]:hover,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:hover { border-color: #092143 !important; }
.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"]::after,
.hv-consent input[type="checkbox"]::after,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s;
}
.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"]:checked,
.hv-consent input[type="checkbox"]:checked,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked {
  border-color: #092143 !important;
  background: #092143 !important;
}
.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"]:checked::after,
.hv-consent input[type="checkbox"]:checked::after,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"]:focus-visible,
.hv-consent input[type="checkbox"]:focus-visible,
.woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:focus-visible { outline: 3px solid #092143; outline-offset: 3px; }
.hv-consent { margin: 6px 0 20px !important; }
.hv-consent label { align-items: flex-start; }
