/* Modal de Termos de Uso e Política de Privacidade (LGPD) */

#modalTermos {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 18, 14, 0.74);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#modalTermos.oculto {
  display: none !important;
}

.termos-dialog {
  background: #ffffff;
  color: #172033;
  border-radius: 22px;
  width: min(700px, 100%);
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.termos-topo {
  padding: 18px 22px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.termos-topo h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.termos-topo small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.termos-conteudo {
  padding: 18px 22px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.65;
}

.termos-conteudo h3 {
  font-size: 16px;
  margin: 18px 0 6px;
  color: var(--primary2);
}

.termos-conteudo p {
  margin: 8px 0;
  color: #374151;
}

.termos-acoes {
  padding: 16px 22px;
  border-top: 1px solid #e5e7eb;
  background: #fcfcfd;
}

.termos-acoes label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  line-height: 1.45;
}

.termos-acoes input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
}

.termos-acoes .btn {
  margin-top: 14px;
  width: 100%;
}

.termos-rodape {
  width: min(1320px, 100%);
  margin: 16px auto;
  padding: 10px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.termos-rodape button {
  background: none;
  border: 0;
  color: #23633d;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.termos-rodape a {
  color: inherit;
}
