/* ===================================================
   MeuBairro - Páginas Legais
   Termos de Uso | Política de Privacidade | Cookies
   =================================================== */

/* Reuso das variáveis do style.css - garantido se carregado após */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-hero {
  background: var(--gradient-hero, linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%));
  color: #fff;
  padding: 48px 0 56px;
  margin-bottom: 48px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-blue, #1E3A5F);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-green, #10B981);
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800, #1F2937);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--gray-700, #374151);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--gray-800, #1F2937);
}

.legal-content a {
  color: var(--primary-green, #10B981);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--primary-green-dark, #059669);
}

.legal-date {
  font-size: 0.9rem;
  color: var(--gray-500, #6B7280);
  margin-bottom: 32px;
}

/* Cookie Banner - primeira visita */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
  color: #fff;
  padding: 24px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn-accept {
  background: var(--primary-green, #10B981);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cookie-banner .btn-accept:hover {
  opacity: 0.95;
}

.cookie-banner .btn-settings {
  background: transparent;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.5);
}

.cookie-banner .btn-settings:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
  .legal-hero h1 { font-size: 1.75rem; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner .btn-accept,
  .cookie-banner .btn-settings { flex: 1; }
}
