/* LGPD: aceite dos termos, painel de privacidade e consentimento do responsável no cadastro. */
.terms-gate {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, #29a8f3 0%, #35b2fa 22%, #4abffe 45%, #68cdfd 68%, #92dcfa 100%);
}

.terms-gate[hidden] {
  display: none;
}

.terms-gate h1 {
  margin: 0;
  color: #0f5c99;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
}

.terms-gate-links,
.privacy-links,
.auth-legal {
  margin: 0;
  font-weight: 800;
}

.terms-gate-links a,
.privacy-links a,
.auth-legal a,
.auth-terms a,
.profile-consent a {
  color: #1d6fd6;
}

.auth-legal {
  margin-top: -6px;
  font-size: 0.85rem;
}

.auth-terms,
.profile-consent,
.profile-form-fields .profile-consent,
.auth-form .auth-terms {
  display: flex;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.auth-terms input,
.profile-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0 !important;
  margin: 1px 0 0;
  accent-color: #1d8fe0;
}

.auth-form .auth-terms {
  display: flex;
}

.auth-form .auth-terms[hidden] {
  display: none;
}

.profile-consent {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1f7fd;
  font-size: 0.92rem;
}

.profile-photo-note {
  max-width: 170px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* Painel "Privacidade e dados". */
.privacy-modal {
  z-index: 100;
}

.privacy-panel {
  width: min(600px, 100%);
  border-radius: 24px;
  grid-template-rows: auto minmax(0, 1fr);
}

.privacy-modal.is-busy .privacy-body {
  opacity: 0.6;
  pointer-events: none;
}

.privacy-body {
  display: grid;
  gap: 18px;
  overflow-y: auto;
}

.privacy-action {
  justify-self: start;
}

.privacy-danger {
  padding: 14px;
  border: 2px solid #fecaca;
  border-radius: 16px;
  background: #fff7f7;
}

.privacy-danger h3 {
  color: #b91c1c;
}
