/* ============================================================================
 * signup-consent-modal.css — Modal de consentimento LGPD pré-cadastro (F2.7)
 *
 * Paleta alinhada com tema dark (slate-900 + indigo/purple). Z-index acima
 * do cookie-consent (9999) — usuário precisa primeiro escolher cookies,
 * depois aceitar termos.
 *
 * Classes prefixadas `.hl-scm` (signup-consent-modal) pra não colidir.
 * ============================================================================ */

.hl-scm {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.hl-scm[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.hl-scm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hl-scm__panel {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 40px rgba(99, 102, 241, 0.15);
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e2e8f0;
  transform: scale(0.96);
  transition: transform 0.18s ease-out;
}

.hl-scm[aria-hidden="false"] .hl-scm__panel {
  transform: scale(1);
}

.hl-scm__header {
  padding: 20px 24px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), transparent);
}

.hl-scm__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: white;
  letter-spacing: -0.01em;
}

.hl-scm__close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.hl-scm__close:hover {
  color: white;
  background: rgba(71, 85, 105, 0.4);
}

.hl-scm__body {
  padding: 18px 24px 14px;
  overflow-y: auto;
}

.hl-scm__lead {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 18px;
}

.hl-scm__checkbox-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hl-scm__checkbox-wrap:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(30, 41, 59, 0.65);
}

.hl-scm__checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #6366f1;
  cursor: pointer;
}

.hl-scm__checkbox-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2e8f0;
}

.hl-scm__link {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.hl-scm__link:hover {
  color: #c7d2fe;
}

.hl-scm__error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
}

.hl-scm__footer {
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(71, 85, 105, 0.4);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.6);
}

.hl-scm__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
}

.hl-scm__btn:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.hl-scm__btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.hl-scm__btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.hl-scm__btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hl-scm__btn--ghost {
  background: rgba(71, 85, 105, 0.4);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

.hl-scm__btn--ghost:hover {
  background: rgba(71, 85, 105, 0.6);
}

.hl-scm__spinner {
  display: inline-flex;
}

@keyframes hl-scm-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 560px) {
  .hl-scm__panel {
    max-height: calc(100vh - 16px);
  }
  .hl-scm__footer {
    flex-direction: column-reverse;
  }
  .hl-scm__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-scm,
  .hl-scm__panel {
    transition: none;
  }
}
