/* Aviso de cookies e modal de preferências (medicao.js). Compartilhado pelo site
   e pelas páginas de campanha (Base.astro); veio do extra.css. */
/* ---- Aviso de cookies (só existe com PUBLIC_GA4_ID; ver scripts/medicao.js) ----
   Acima da nav (200) e abaixo dos modais (300): com o formulário aberto, o
   formulário vence. "Aceitar" é o botão em destaque; "Preferências" é discreto
   e abre o modal de preferências, onde fica a recusa. */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 260;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: #082840;
  color: rgba(234, 241, 248, 0.9);
  border-radius: 16px;
  box-shadow: 0 18px 50px -20px rgba(8, 40, 64, 0.6);
  font-size: 14px;
  line-height: 1.5;
}
.consent-txt {
  flex: 1 1 320px;
  margin: 0;
}
.consent-txt a {
  color: #7fe0ec;
}
.consent-acoes {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.consent-btn {
  border: none;
  background: transparent;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn.consent-pref {
  color: rgba(234, 241, 248, 0.72);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-btn.consent-pref:hover {
  color: #fff;
}
.consent-btn.consent-ok {
  padding: 11px 28px;
  background: #6058c0;
  font-weight: 700;
  font-size: 15px;
  box-shadow:
    0 0 0 1px rgba(160, 152, 255, 0.55),
    0 12px 30px -10px rgba(96, 88, 192, 0.95);
}
.consent-btn.consent-ok:hover {
  background: #6d65d6;
}
.consent-btn:focus-visible {
  outline: 2px solid #7fe0ec;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .consent-acoes {
    width: 100%;
  }
  .consent-btn.consent-ok {
    flex: 1;
  }
}

/* ---- Preferências de cookies: o modal com uma chave por categoria ----
   Mesmo desenho do formulário de contato (#demo-overlay), acima dele e do aviso. */
.cprefs {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 30, 48, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cprefs-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: #082840;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 34px);
  box-shadow: 0 40px 90px -30px rgba(6, 30, 48, 0.7);
}
.cprefs-fechar {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e6eef7;
  background: #f4f8fc;
  color: #6b7c8d;
  cursor: pointer;
}
.cprefs-titulo {
  margin: 0 0 6px;
  padding-right: 44px;
  font-family: 'Hanken Grotesk';
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.cprefs-intro {
  margin: 0 0 18px;
  color: #5b6b7b;
  font-size: 14.5px;
}
.cprefs-intro a {
  color: #6058c0;
}
.cprefs-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eaf1f6;
}
.cprefs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eaf1f6;
}
.cprefs-rotulo {
  flex: 1;
  cursor: pointer;
}
.cprefs-nome {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.cprefs-desc {
  display: block;
  margin-top: 2px;
  color: #6b7c8d;
  font-size: 13.5px;
}
.cprefs-sempre {
  flex: none;
  color: #4f5d6b;
  font-size: 13px;
  font-weight: 600;
}
.cprefs-chave {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #cfd8e3;
  cursor: pointer;
  transition: background 0.2s;
}
.cprefs-chave::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 40, 64, 0.3);
  transition: transform 0.2s;
}
.cprefs-chave:checked {
  background: #6058c0;
}
.cprefs-chave:checked::before {
  transform: translateX(18px);
}
.cprefs-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.cprefs-btn {
  border: 1px solid #d5dee8;
  background: #fff;
  color: #082840;
  padding: 12px 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cprefs-btn.cprefs-ok {
  border-color: #6058c0;
  background: #6058c0;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(96, 88, 192, 0.9);
}
.cprefs-btn.cprefs-ok:hover {
  background: #6d65d6;
}
.cprefs-chave:focus-visible,
.cprefs-btn:focus-visible,
.cprefs-fechar:focus-visible {
  outline: 2px solid #6058c0;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .cprefs-btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cprefs-chave,
  .cprefs-chave::before {
    transition: none;
  }
}
