/* ==========================================================================
   Casillas de aceptacion (views/partials/consent-checks.ejs): registro,
   nueva aceptacion, pago y activacion de keys. Se carga en las paginas de
   acceso (auth-head) y en el panel (panel-header). Todo selector empieza con
   .lg- ; funciona en tema claro y oscuro.
   ========================================================================== */

.lg-checks { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; text-align: left; }
.lg-check {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45; color: var(--muted, #a1a1aa); cursor: pointer;
}
.lg-check input {
  position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; left: 0; top: 0; cursor: pointer;
}
.lg-check-box {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 0; border-radius: 6px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04);
  color: transparent; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lg-check-box svg { width: 13px; height: 13px; }
.lg-check input:checked + .lg-check-box {
  background: linear-gradient(135deg, #ff3947 0%, #d42a38 60%, #a01a26 100%);
  border-color: #ff3947; color: #fff;
}
.lg-check input:focus-visible + .lg-check-box { outline: 2px solid #ff6b75; outline-offset: 2px; }
.lg-check-text { min-width: 0; overflow-wrap: anywhere; }
.lg-check-text a { color: #ff6b75; text-decoration: underline; text-underline-offset: 2px; }
.lg-check-text a:hover { color: #ff8f97; }
.lg-check-error { margin: 0; font-size: 12.5px; color: #ff6b75; }
.lg-check-error[hidden] { display: none; }
.lg-checks.is-invalid .lg-check input:not(:checked) + .lg-check-box { border-color: #ff3947; box-shadow: 0 0 0 3px rgba(255, 57, 71, 0.2); }

html[data-theme="light"] .lg-check { color: #52525b; }
html[data-theme="light"] .lg-check-box { border-color: rgba(0, 0, 0, 0.28); background: #fff; }
html[data-theme="light"] .lg-check-text a { color: #c81e2c; }
html[data-theme="light"] .lg-check-error { color: #c81e2c; }

/* Pie con los links legales (paginas de acceso, panel, landing) */
.lg-foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.lg-foot-links a { color: inherit; opacity: 0.8; text-decoration: none; }
.lg-foot-links a:hover { opacity: 1; text-decoration: underline; }
.lg-note { font-size: 12.5px; line-height: 1.45; color: var(--muted, #a1a1aa); }
.lg-note a { color: #ff6b75; text-decoration: underline; }
html[data-theme="light"] .lg-note a { color: #c81e2c; }

/* "Cerrar sesion" como enlace (form POST en /panel/accept) */
.lg-linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; opacity: 0.85;
}
.lg-linklike:hover { opacity: 1; }

/* Pie legal al final de cada pagina del panel (views/partials/panel-footer.ejs) */
.wave-legal-foot { margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)); font-size: 12.5px; color: var(--muted-2, #71717a); text-align: center; }
