/* ====================================================================
   web/css/aceite-termos.css — modal de aceite dos termos, tela de demo
   encerrada e rodapé com Termos e Privacidade (spec de acesso seguro
   19/10/2026, §3.8 e §4.2–4.3). Par de web/js/aceite-termos.js.
   Toda regra começa por `.at-`: nada vaza para o resto do app. Tokens com
   os valores de web/css/visual-a.css. Fica acima do tour (5000–5002):
   o aceite vem antes de tudo.
   ==================================================================== */
.at-fundo, .at-rodape {
  --at-ink: #0a1628; --at-dim: #5b6472; --at-line: #e6e8ec; --at-fill: #f3f4f6;
  --at-azul: #152848; --at-azul-10: #e6ecf6; --at-perigo: #a5281b; --at-perigo-fundo: rgba(192,57,43,.07);
  --at-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.at-fundo {
  position: fixed; inset: 0; z-index: 6000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 22, 40, .48); overflow-y: auto;
  font-family: var(--at-font); color: var(--at-ink); -webkit-font-smoothing: antialiased;
}
.at-fundo.at-demo { background: #fff; }
.at-caixa {
  width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 28px 24px 20px;
  box-shadow: 0 24px 64px rgba(10, 22, 40, .22);
}
.at-demo .at-caixa { box-shadow: none; text-align: center; padding-top: 8px; }
.at-marca { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
.at-tit { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; outline: none; }
.at-demo .at-tit { font-size: 24px; }
.at-txt { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--at-ink); }
.at-dim { color: var(--at-dim); font-size: 13.5px; }
.at-contato { font-size: 16px; font-weight: 600; margin: 4px 0 20px; overflow-wrap: anywhere; }
.at-contato a { color: var(--at-azul); }

.at-caixas { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; }
.at-caixa-linha {
  display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0;
  font-size: 15px; line-height: 1.45; cursor: pointer;
}
.at-caixa-linha input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--at-azul); cursor: pointer; }
.at-caixa-linha a { color: var(--at-azul); }

.at-erro { display: none; margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: var(--at-perigo-fundo); color: var(--at-perigo); }
.at-erro.at-on { display: block; }

.at-acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.at-btn {
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-family: var(--at-font);
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
}
.at-btn-pri { background: var(--at-azul); color: #fff; }
.at-btn-pri:hover:not(:disabled) { background: var(--at-ink); }
.at-btn-pri:disabled { opacity: .45; cursor: not-allowed; }
.at-btn-pri.at-ocupado:disabled { opacity: .6; cursor: wait; }
.at-btn-sec { background: #fff; color: var(--at-ink); border-color: var(--at-line); }
.at-btn-sec:hover { background: var(--at-fill); }
.at-btn:focus-visible, .at-caixa-linha input:focus-visible, .at-fundo a:focus-visible { outline: 3px solid var(--at-azul-10); outline-offset: 2px; }

/* rodapé da tela inicial (spec §4.2): Termos e Privacidade */
.at-rodape {
  display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 24px auto 8px; padding: 0 16px; font-family: var(--at-font); font-size: 13px; color: var(--at-dim);
}
/* a tela inicial nova (visual A) é uma coluna flex montada depois do rodapé: `order` o mantém por último */
#module-home > .at-rodape { order: 99; }
.at-rodape a { color: var(--at-dim); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.at-rodape a:hover { color: var(--at-azul); text-decoration: underline; }
.at-rodape a:focus-visible { outline: 3px solid var(--at-azul-10); border-radius: 6px; }

@media (max-width: 480px) {
  .at-fundo:not(.at-demo) { align-items: flex-end; padding: 0; }
  .at-fundo:not(.at-demo) .at-caixa { border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 100dvh; }
}
