.rodape-legal {
  background: #f5f6fa;
  border-top: 1px solid #e0e0e0;
  box-sizing: border-box;
  clear: both;
  color: #666;
  flex: 0 0 auto;
  font-size: 11px;
  padding: 10px 24px;
  text-align: center;
  width: 100%;
}

.rodape-legal-links {
  margin-top: 4px;
}

.rodape-legal-link,
.modal-termos-link {
  color: #00adef;
}

.rodape-legal-link:hover,
.modal-termos-link:hover {
  color: #008fc4;
}

body.modal-termos-open {
  overflow: hidden;
}

.modal-termos-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  height: 100%;
  inset: 0;
  justify-content: center;
  position: fixed;
  width: 100%;
  z-index: 99999;
}

.modal-termos-overlay.is-visible {
  display: flex;
}

.modal-termos-dialog {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-width: 720px;
  width: 92%;
}

.modal-termos-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 24px 32px 16px;
}

.modal-termos-logo,
.termos-documento-logo {
  display: block;
  height: 26px;
  margin-bottom: 10px;
}

.modal-termos-title {
  color: #1a1a2e;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.modal-termos-subtitle {
  color: #555;
  font-size: 13px;
  margin: 6px 0 0;
}

.modal-termos-version {
  font-weight: 700;
}

.modal-termos-content {
  border-bottom: 1px solid #e0e0e0;
  color: #333;
  font-size: 13px;
  line-height: 1.7;
  max-height: 52vh;
  overflow-y: auto;
  padding: 16px 32px;
}

.modal-termos-section-title {
  color: #1a1a2e;
  margin: 14px 0 4px;
}

.modal-termos-check-row {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 13px;
  gap: 10px;
  margin-top: 20px;
}

.modal-termos-check-label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  line-height: 1.5;
  margin: 0;
}

#chk-aceito-termos {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.chk-box-visual {
  align-items: center;
  background: #fff;
  border: 2px solid #b0b8c1;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  width: 18px;
}

#chk-aceito-termos:checked + .chk-box-visual {
  background: #00adef;
  border-color: #00adef;
}

#chk-aceito-termos:checked + .chk-box-visual::after {
  border: 2px solid #fff;
  border-left: none;
  border-top: none;
  content: '';
  height: 9px;
  left: 4px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 5px;
}

#chk-aceito-termos:focus + .chk-box-visual {
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.18);
}

.modal-termos-footer {
  flex-shrink: 0;
  padding: 16px 32px 24px;
}

.modal-termos-error {
  color: #c62828;
  font-size: 12px;
  margin-bottom: 8px;
}

.modal-termos-error.is-hidden {
  display: none;
}

.modal-termos-button {
  background: #00adef;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.45;
  padding: 13px;
  width: 100%;
}

.modal-termos-button:not(:disabled) {
  opacity: 1;
}

.modal-termos-button:disabled {
  cursor: not-allowed;
}

.termos-documento {
  background: #f5f6fa;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 32px 16px;
}

.termos-documento-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  color: #333;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 860px;
  padding: 32px;
}

.termos-documento-card h1 {
  color: #1a1a2e;
  font-size: 26px;
  margin-bottom: 4px;
}

.termos-documento-version {
  color: #666;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .modal-termos-dialog {
    max-height: 96vh;
    width: 96%;
  }

  .modal-termos-header,
  .modal-termos-content,
  .modal-termos-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .modal-termos-content {
    max-height: 58vh;
  }

  .termos-documento-card {
    padding: 22px 18px;
  }
}
