/* ==========================================
   TERMOS E POLÍTICAS - CSS
   ========================================== */

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Header */
.termos-header {
  background: linear-gradient(135deg, #ff6b35, #e55722);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voltar-btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.voltar-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.header-container h1 {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.termos-main {
  padding: 40px 20px;
  min-height: calc(100vh - 160px);
}

.termos-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título Principal */
.termos-titulo {
  background: linear-gradient(135deg, #ff6b35, #e55722);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.termos-titulo h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.termos-titulo h2 {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 15px;
}

.data-publicacao {
  font-size: 14px;
  opacity: 0.8;
  font-style: italic;
}

/* Seções */
.termos-secao {
  padding: 30px;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.termos-secao:last-child {
  border-bottom: none;
}

.termos-secao:hover {
  background: #f8f9fa;
}

.termos-secao h3 {
  color: #ff6b35;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b35;
  display: inline-block;
}

.termos-secao p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
  color: #555;
}

.termos-secao p:last-child {
  margin-bottom: 0;
}

/* Footer */
.termos-footer {
  background: #343a40;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-container p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-container p:last-child {
  margin-bottom: 0;
}

.contato-link {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 107, 53, 0.3);
  display: inline-block;
  margin-top: 10px;
}

.contato-link:hover {
  background: rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  color: #ff6b35;
  text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .header-container h1 {
    font-size: 24px;
  }
  
  .termos-titulo h1 {
    font-size: 28px;
  }
  
  .termos-titulo h2 {
    font-size: 18px;
  }
  
  .termos-secao {
    padding: 20px;
  }
  
  .termos-secao h3 {
    font-size: 20px;
  }
  
  .termos-secao p {
    font-size: 15px;
    text-align: left;
  }
  
  .termos-main {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  .voltar-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .termos-titulo {
    padding: 30px 20px;
  }
  
  .termos-titulo h1 {
    font-size: 24px;
  }
  
  .termos-secao {
    padding: 15px;
  }
  
  .termos-secao h3 {
    font-size: 18px;
  }
  
  .termos-secao p {
    font-size: 14px;
  }
}

/* Efeitos visuais */
.termos-container {
  position: relative;
  overflow: hidden;
}

.termos-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff6b35, transparent);
  animation: shine 3s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  .termos-header,
  .termos-footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .voltar-btn,
  .contato-link {
    display: none;
  }
  
  .termos-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .termos-titulo {
    background: white !important;
    color: black !important;
  }
  
  .termos-secao h3 {
    color: black !important;
  }
}
