/* ─────────────────────────────────────────────
   BIB · Folha de estilo compartilhada das páginas legais
   Estende o design system do index.html (Inter, paleta azul royal)
   ───────────────────────────────────────────── */

:root {
  --blue-900: #1E3A8A;
  --blue-500: #3B82F6;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --green-500: #10B981;
  --red-500: #EF4444;

  /* Aliases legados usados no conteúdo das políticas */
  --bib-blue: #1E3A8A;
  --bib-blue-deep: #0B1437;
  --bib-blue-light: #3B82F6;
  --bib-bg: #FFFFFF;
  --bib-text: #0F172A;
  --bib-text-muted: #64748B;
  --bib-border: #E2E8F0;
  --bib-card: #FFFFFF;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.10), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── Typography ───── */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--gray-900);
  text-wrap: balance;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-900);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(30, 58, 138, 0.45);
}
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ───── Header ───── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.header.scrolled {
  border-bottom-color: var(--gray-200);
  background: rgba(255, 255, 255, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.nav a {
  position: relative;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--blue-900); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--blue-900);
  transition: right .25s var(--ease);
}
.nav a:hover::after { right: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--gray-900);
}

/* ───── Hero ───── */
.hero {
  background: linear-gradient(135deg, #0B1437 0%, var(--blue-900) 100%);
  color: #fff;
  padding: 168px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(59, 130, 246, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
}
.hero p {
  font-size: 19px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.hero-meta {
  margin-top: 40px;
  padding-top: 28px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
}
.hero-meta div span:first-child {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.hero-meta div span:last-child {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
}

/* ───── Content layout ───── */
.content-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
}
.content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 100px;
}

/* Sumário lateral */
.sumario {
  position: sticky;
  top: 110px;
  height: fit-content;
}
.sumario h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-500);
  margin-bottom: 16px;
  font-weight: 600;
}
.sumario ol {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
}
.sumario ol li {
  counter-increment: item;
  margin-bottom: 2px;
}
.sumario ol li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  color: var(--gray-700);
  font-size: 14px;
  border-radius: 6px;
  transition: all .2s var(--ease);
  border-left: 2px solid transparent;
}
.sumario ol li a::before {
  content: counter(item, decimal-leading-zero);
  color: var(--gray-400);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sumario ol li a:hover {
  background: var(--gray-50);
  color: var(--blue-900);
  border-left-color: var(--blue-900);
}

/* Seções de conteúdo */
.secao {
  margin-bottom: 64px;
  scroll-margin-top: 110px;
}
.secao h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--gray-900);
  line-height: 1.2;
}
.secao h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--blue-900);
  margin-bottom: 16px;
  border-radius: 2px;
}
.secao h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--gray-900);
  letter-spacing: -0.005em;
}
.secao p {
  margin-bottom: 16px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.7;
}
.secao ul, .secao ol {
  margin-bottom: 16px;
  padding-left: 0;
  list-style: none;
}
.secao ul li, .secao ol li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.secao ul li:last-child, .secao ol li:last-child { border-bottom: none; }
.secao ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--blue-900);
  border-radius: 50%;
}
.secao ol { counter-reset: secao-item; }
.secao ol li {
  counter-increment: secao-item;
}
.secao ol li::before {
  content: counter(secao-item) '.';
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--blue-900);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.secao ul li strong, .secao ol li strong {
  color: var(--blue-900);
  font-weight: 600;
}
.secao a { color: var(--blue-900); text-decoration: underline; text-underline-offset: 2px; }
.secao a:hover { color: var(--blue-500); }
.secao strong { color: var(--gray-900); font-weight: 600; }

/* Card de informação */
.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--blue-900);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.info-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 14px;
  font-weight: 600;
}
.info-card p { margin-bottom: 8px; font-size: 14.5px; color: var(--gray-700); }
.info-card p:last-child { margin-bottom: 0; }
.info-card strong { color: var(--gray-900); }

/* Grid de direitos / quadros */
.direitos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.direito-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 22px;
  border-radius: var(--radius-md);
  transition: all .25s var(--ease);
}
.direito-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.direito-item .num {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-900);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.direito-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.direito-item p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

/* Alerta regulatório (mantém warm accent — atenção genuína) */
.alert-regulatorio {
  background: #fff8eb;
  border: 1px solid #fde68a;
  border-left: 3px solid #d97706;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  color: #78350f;
  font-size: 14.5px;
  line-height: 1.6;
}
.alert-regulatorio strong { color: #78350f; }

/* Lead paragraph (after sumário, before first secao) */
.lead-paragraph {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 40px;
  line-height: 1.65;
}
.lead-paragraph strong { color: var(--blue-900); font-weight: 600; }

/* ───── Footer (idêntico ao index.html) ───── */
footer {
  background: linear-gradient(135deg, #0B1437 0%, var(--blue-900) 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
footer h4 {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 20px;
}
footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
footer ul a,
footer ul button.link-btn {
  color: rgba(255, 255, 255, 0.82);
  transition: color .2s var(--ease);
  background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer; text-align: left;
}
footer ul a:hover,
footer ul button.link-btn:hover { color: #fff; }

footer .col-brand p {
  font-size: 14px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
  line-height: 1.6;
}
footer .col-brand .logo { margin-bottom: 4px; }
footer .col-brand .logo img { height: 68px; max-width: 260px; object-fit: contain; opacity: 0.98; }

footer .contact-info {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
footer .contact-info a { color: rgba(255, 255, 255, 0.9); transition: color .2s var(--ease); }
footer .contact-info a:hover { color: #fff; }
footer .contact-info strong { color: rgba(255, 255, 255, 0.95); font-weight: 600; }

.footer-bottom {
  padding-top: 30px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s var(--ease);
  font-size: 12.5px;
}
.footer-bottom .legal-links a:hover { color: #fff; }

.footer-disclaimer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 980px;
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 80px; }
  .sumario {
    position: static;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .hero { padding: 140px 0 80px; }
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .nav, .header .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 120px 0 60px; }
  .hero-meta { gap: 24px; }
  .content-wrapper, .content { padding: 48px 20px 64px; }
  .secao { margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .legal-links { flex-wrap: wrap; gap: 14px 18px; }
}
