/* ============================================================
   ELEVA AMAPÁ — CSS GLOBAL DAS PÁGINAS INSTITUCIONAIS/JURÍDICAS
   Usado por: sobre.html, termos.html, privacidade.html
   ============================================================ */

/* ---------- Base tipográfica de leitura ---------- */
.legal-content {
  color: #d4d4d8; /* zinc-300 */
  line-height: 1.75;
}

.legal-content h2 {
  scroll-margin-top: 100px; /* compensa navbar fixa ao clicar no sumário */
  color: #fff;
  font-weight: 800;
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #27272a; /* zinc-800 */
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legal-content h2 .num {
  color: #f59e0b; /* amber-500 */
  font-size: 1rem;
  font-weight: 900;
}

.legal-content h3 {
  color: #f4f4f5;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1.1rem;
  padding-left: 1.35rem;
  font-size: 0.95rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content ul li {
  list-style: none;
  position: relative;
  padding-left: 1.1rem;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f59e0b;
}

.legal-content ol li {
  padding-left: 0.2rem;
}

.legal-content strong {
  color: #fafafa;
  font-weight: 700;
}

.legal-content a.inline-link {
  color: #f59e0b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 158, 11, 0.4);
}
.legal-content a.inline-link:hover {
  text-decoration-color: #f59e0b;
}

/* ---------- Caixa de destaque / alerta legal ---------- */
.legal-box {
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid #27272a;
  border-left: 3px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: #d4d4d8;
}

.legal-box.warning {
  border-left-color: #ef4444;
}
.legal-box.info {
  border-left-color: #10b981;
}

/* ---------- Campo pendente de preenchimento pelo fundador ---------- */
.fill-pending {
  background: rgba(239, 68, 68, 0.12);
  border: 1px dashed rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.05rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Placa "em desenvolvimento" ---------- */
.badge-dev {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- Sumário lateral (desktop) ---------- */
.toc-desktop {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #a1a1aa; /* zinc-400 */
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.toc-link:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.03);
}

.toc-link.active {
  color: #f59e0b;
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.07);
}

/* ---------- Sumário mobile (accordion) ---------- */
#toc-mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#toc-mobile-panel.open {
  max-height: 480px;
  overflow-y: auto;
}

/* ---------- Botão voltar ao topo ---------- */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #09090b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #fbbf24;
}

/* ---------- Cabeçalho hero das páginas legais ---------- */
.legal-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245, 158, 11, 0.12), transparent);
}

/* ---------- Cards da página Sobre ---------- */
.value-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
}

/* ---------- Print ---------- */
@media print {
  header, footer, #back-to-top, .toc-desktop, #toc-mobile-toggle, #toc-mobile-panel, .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .legal-content, .legal-content h2, .legal-content h3, .legal-content strong {
    color: #000 !important;
  }
}