:root {
  color-scheme: light;
  --navy: #0b1629;
  --navy-2: #1a2c4a;
  --gold: #c9a84c;
  --gold-dark: #8f7833;
  --cream: #f5f4ef;
  --paper: #ffffff;
  --line: #e2e0d6;
  --text: #344054;
  --muted: #697386;
  --shadow: 0 20px 48px rgba(11, 22, 41, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: var(--gold-dark); }

a:focus-visible {
  outline: 3px solid rgba(201, 168, 76, .52);
  outline-offset: 4px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.legal-nav-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-nav {
  width: min(1180px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  width: 194px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 50%;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-button:hover {
  transform: translateY(-1px);
  background: var(--navy-2);
  box-shadow: 0 8px 20px rgba(11, 22, 41, .14);
}

.top {
  position: relative;
  overflow: hidden;
  padding: 150px 24px 82px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.top::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 320px;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 168, 76, .22), transparent 68%);
  pointer-events: none;
}

.top-inner,
.document {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.top-inner { position: relative; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.top h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.top .updated {
  margin: 0;
  color: #aebbd0;
  font-size: 14px;
}

.document {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  margin-bottom: 64px;
  padding: 50px 54px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.document h2 {
  position: relative;
  margin: 42px 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -.018em;
}

.document h2:first-child { margin-top: 0; }

.document h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.05em;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--gold);
  vertical-align: -.12em;
}

.document h3 {
  margin: 28px 0 8px;
  color: var(--navy-2);
  font-size: 1.08rem;
}

.document p,
.document li { color: var(--text); }

.document ul,
.document ol { padding-left: 24px; }

.document li + li { margin-top: 8px; }

.document a {
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.company,
.notice {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #e8ddba;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fbf6e8;
}

.company p,
.notice p { margin: 3px 0; }

.footer {
  margin: 50px -54px 0;
  padding: 28px 54px;
  background: var(--navy);
  color: #aebbd0;
  font-size: .88rem;
}

.footer a { color: #fff; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
}

/* Página de Dúvidas frequentes (/faq) — mesmo shell das páginas institucionais
   (.legal-nav-shell / .top / .top-inner), corpo em acordeão em vez de artigo
   corrido, por isso .faq-doc e não .document.

   Estas regras vieram de app/globals.css em 24/08/2026, junto com o conteúdo
   da página, quando app/faq/page.tsx foi removido (ver o comentário no topo de
   public/faq.html). Vieram, não foram copiadas: deixar as duas de pé era
   guardar dois desenhos da mesma página esperando divergirem. */
.faq-doc {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 40px));
  margin: -34px auto 64px;
  padding: 6px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 2px 22px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease;
}

.faq-item:hover { border-color: #d9c990; }

.faq-item summary {
  padding: 18px 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--gold-dark);
  font-size: 20px;
  font-weight: 400;
  flex: none;
  transition: transform .18s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Única diferença de valor em relação ao original: padding-bottom. Em
   app/globals.css o body era overflow:hidden (herança do iframe do portal) e
   esta linha era o último elemento com margem zero embaixo; servida de
   verdade, numa página que rola, ela encostava na borda inferior da tela. */
.faq-more {
  margin: 28px auto 0;
  padding-bottom: 64px;
  width: min(820px, calc(100% - 40px));
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .faq-doc { margin-top: -24px; margin-bottom: 28px; }
  .faq-item { padding: 2px 16px; }
  .legal-nav { min-height: 70px; padding: 8px 15px; }
  .brand { width: 150px; height: 48px; }
  .home-button { min-height: 38px; padding: 8px 13px; font-size: 13px; }
  .top { padding: 124px 18px 66px; }
  .top-inner,
  .document { width: min(100% - 24px, 900px); }
  .top h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .document { margin-top: -24px; margin-bottom: 28px; padding: 30px 20px 0; border-radius: 16px; }
  .document h2 { margin-top: 34px; font-size: 1.18rem; }
  .company,
  .notice { padding: 17px 16px; }
  .footer { margin: 40px -20px 0; padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-button { transition: none; }
}
