#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.26);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

#loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}

.spinner-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid transparent;
  border-top: 5px solid #6a11cb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-circle:nth-child(2) {
  border: 5px solid transparent;
  border-top: 5px solid #2575fc;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation: spin 1.5s linear infinite reverse;
}

.loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #2c3e50;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

:root {
  --primary-color: #045abd;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --border-radius: 12px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.legal-page {
  margin-top: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
  min-height: 100vh;
  padding-bottom: 50px;
}

.legal-header {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: rgb(255, 253, 253);
  padding: 60px 0;
  margin-bottom: 30px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.legal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.legal-content:hover {
  transform: translateY(-5px);
}

.legal-content h2 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.legal-content h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.legal-content h5 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 1.5rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.legal-content li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.contact-info {
  background: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
}

.last-updated {
  background: var(--primary-color);
  color: rgb(241, 241, 241);
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: rgb(255, 255, 255);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: #0056b3;
  transform: translateY(-3px);
}

.section-navigation {
  position: sticky;
  top: 140px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.section-navigation h5 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.section-navigation .nav-link {
  color: var(--text-color);
  padding: 8px 0;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.section-navigation .nav-link:hover,
.section-navigation .nav-link.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 15px;
}

@media (max-width: 992px) {
  .legal-page {
    margin-top: 100px;
  }

  .legal-content {
    padding: 2rem;
  }

  .section-navigation {
    position: static;
    margin-bottom: 2rem;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .legal-page {
    margin-top: 80px;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-header {
    padding: 40px 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media print {
  .legal-page {
    margin-top: 0;
    background: white;
  }

  .legal-content {
    box-shadow: none;
    padding: 0;
  }

  .back-to-top,
  .section-navigation {
    display: none;
  }
}

/* Logo circular + nome */
.logo-nome {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* deixa circular */
}

.nome-empresa {
  font-size: 20px;
  font-weight: bold;
  color: #ffffffff !important;
}

/* Botões filtro */
.filtros {
  margin-bottom: 20px;
}

.filtro-btn {
  padding: 5px 10px;
  cursor: pointer;
  margin-right: 5px;
  border: none;
  background: #1e90ff;
  color: white;
  border-radius: 5px;
}

.filtro-btn.active,
.filtro-btn:hover {
  background: #0b5ea8;
}

/* --- WhatsApp --- */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}
