/* ---------------------------------------------------------------------------
   Folha de estilo das páginas jurídicas — GB Tech OAuth
   Identidade visual herdada da página inicial (index.html).

   AVISO INTERNO (não exibido ao visitante):
   Os documentos jurídicos deste site são textos informativos iniciais e devem
   ser revisados por profissional jurídico antes de utilização comercial ampla.
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070707;
  --bg2: #0e0e0e;
  --gold: #c9a96e;
  --gold2: #e8d5a8;
  --white: #f2ece0;
  --border: rgba(201, 169, 110, 0.15);
  /* Tons de leitura com contraste adequado para documentos longos */
  --ink: #ded7ca;
  --ink-2: #9a9081;
  --measure: 46rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Acessibilidade ---------- */

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold2); }

:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  z-index: 500;
}
.skip-link:focus {
  left: 0;
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Cabeçalho ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.logo:hover { color: var(--gold2); }

.header-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.header-nav a {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.header-nav a:hover { color: var(--gold); }
.header-nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Documento ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.doc-tag {
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 8px 18px;
  display: inline-block;
  margin-bottom: 30px;
}

.doc h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.doc-meta {
  font-size: .78rem;
  color: var(--ink-2);
  line-height: 1.9;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.doc-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
}
.doc-meta dt {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .62rem;
  color: var(--gold);
  padding-top: .25em;
}
.doc-meta dd { color: var(--ink-2); }

.doc-intro {
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 44px;
}

/* ---------- Sumário ---------- */

.toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 30px 32px;
  margin-bottom: 56px;
}
.toc h2 {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 34px;
}
.toc li {
  counter-increment: toc;
  font-size: .8rem;
  line-height: 1.6;
  margin-bottom: 9px;
  break-inside: avoid;
}
.toc li::before {
  content: counter(toc) ".";
  color: var(--gold);
  margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Seções ---------- */

.doc section { margin-bottom: 46px; scroll-margin-top: 24px; }

.doc h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 8px;
}
.doc section > h2 { margin-bottom: 18px; }

.doc h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--white);
  margin: 28px 0 12px;
}

.doc p { font-size: .88rem; margin-bottom: 16px; }

.doc ul, .doc ol { margin: 0 0 18px 1.15rem; }
.doc li { font-size: .88rem; margin-bottom: 10px; }
.doc li::marker { color: var(--gold); }

.doc dl.defs { margin-bottom: 18px; }
.doc dl.defs dt {
  font-size: .84rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 16px;
}
.doc dl.defs dd { font-size: .88rem; margin-left: 0; }

.doc strong { color: var(--white); font-weight: 600; }

.callout {
  border-left: 2px solid var(--gold);
  background: var(--bg2);
  padding: 22px 26px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: .85rem; }

.step-list { counter-reset: step; list-style: none; margin-left: 0; }
.step-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 30px;
}
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
}
.step-list ul { margin-top: 10px; }

.back-top {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}
.back-top:hover { color: var(--gold); }

/* ---------- Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px 28px 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.footer-nav a {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }
.footer-legal p {
  font-size: .68rem;
  line-height: 1.95;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.footer-legal a { color: var(--ink-2); }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Responsivo ---------- */

@media (max-width: 720px) {
  body { font-size: 15px; }
  .header-inner { padding: 20px 20px; }
  .doc { padding: 48px 20px 72px; }
  .toc { padding: 24px 22px; }
  .toc ol { columns: 1; }
  .footer-inner { padding: 32px 20px 44px; }
  .doc-meta dl { grid-template-columns: 1fr; gap: 0 0; }
  .doc-meta dt { margin-top: 10px; }
}

/* ---------- Impressão ---------- */

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .toc, .skip-link, .back-top { display: none; }
  .doc { max-width: none; padding: 0; }
  .doc h1, .doc h2, .doc h3, .doc strong { color: #000; }
  .doc a { color: #000; }
  .callout { border-left: 2px solid #000; background: none; }
}
