/* ══════════════════════════════════════════════════════════════
   legal.css — estilos compartilhados das páginas institucionais
   (termos-de-uso, politica-privacidade, politica-cookies)
   Reaproveita os tokens de design do index.html para manter
   consistência visual com o restante do site.
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy: #1A1A2E;
  --navy-light: #16213E;
  --navy-mid: #0F3460;
  --blue: #2B5BAE;
  --blue-pale: #D6E4F5;
  --blue-ghost: #EDF2FA;
  --gold: #C41E24;
  --gold-light: #E63946;
  --gold-dark: #A01820;
  --green: #10B981;
  --red: #C41E24;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --font-display: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', sans-serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

@font-face { font-family: 'DM Sans Fallback'; src: local('Arial'); size-adjust: 96%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: 'Plus Jakarta Sans Fallback'; src: local('Arial'); size-adjust: 101%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

/* ══════════════ RESET ══════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══════════════ ÍCONE DE SELO PRÓPRIO (escudo) ══════════════ */
/* Substitui o antigo "✅", que era visualmente confundido com o
   selo de verificação de redes sociais / de órgão oficial. */
.ico-shield { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ══════════════ AVISO DE EMPRESA PRIVADA (topo) ══════════════ */
.announcement {
  background: linear-gradient(135deg, #C41E24 0%, #A01820 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-display);
}
.announcement strong { color: #FCD34D; }

/* ══════════════ FAIXA DE IDENTIFICAÇÃO ══════════════ */
.credential-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 24px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  justify-content: center;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  font-family: var(--font-display);
}
.credential-strip span { display: flex; align-items: center; gap: 6px; }
.credential-strip .dot { width: 4px; height: 4px; background: var(--gray-300); border-radius: 50%; }

/* ══════════════ HEADER ══════════════ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--gray-600); transition: color 0.2s; }
.nav a:hover { color: var(--blue); }
.nav-cta {
  background: #C41E24;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(196,30,36,0.3);
}
.nav-cta:hover { background: #A01820; transform: translateY(-1px); }

.mobile-menu-btn { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; z-index: 1001; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════ CONTEÚDO ══════════════ */
.legal-main { padding: 48px 0 72px; }
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}
.legal-breadcrumb { max-width: 860px; margin: 0 auto 20px; font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legal-breadcrumb a { color: var(--blue); font-weight: 600; }
.legal-breadcrumb a:hover { text-decoration: underline; }
.legal-breadcrumb .sep { color: var(--gray-300); }

.legal-card h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
}
.legal-card .legal-updated { font-size: 13px; color: var(--gray-500); margin-bottom: 28px; }
.legal-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
.legal-card h2:first-of-type { border-top: none; padding-top: 0; }
.legal-card p { font-size: 15.5px; color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; }
.legal-card ul { margin: 0 0 16px; padding-left: 0; }
.legal-card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-card ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.legal-card strong { color: var(--gray-800); font-weight: 600; }
.legal-card a:not(.nav-cta) { color: var(--blue); font-weight: 600; }
.legal-card a:not(.nav-cta):hover { text-decoration: underline; }

.disclaimer-box {
  background: #FEF3C7;
  border: 1px solid #FBBF24;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.6;
}
.disclaimer-box .icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.legal-contact {
  background: var(--blue-ghost);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

.legal-nav { max-width: 860px; margin: 28px auto 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.legal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-display);
  transition: all 0.2s;
}
.legal-nav a:hover { border-color: var(--blue); color: var(--blue); }
.legal-nav a[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ══════════════ FOOTER ══════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-legal .sep { opacity: 0.3; }

/* ══════════════ WHATSAPP FLOAT ══════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--white); flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 1000; }
  .nav.open { display: flex; }
  .nav.open a { font-size: 20px; color: var(--navy); }
  .mobile-menu-btn { display: flex; }
  .credential-strip { flex-wrap: wrap; gap: 8px; font-size: 11px; }
  .announcement { font-size: 12px; }
  .legal-main { padding: 32px 0 56px; }
  .legal-card { padding: 28px 22px; border-radius: 16px; }
  .legal-card h1 { font-size: 26px; }
  .legal-card h2 { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
