/* =========================================================================
   GestorPro — Páginas legais (/legal/*)
   Tokens portados 1:1 de ../index.html — a landing atual (azul + Archivo).
   Tema único CLARO: a landing não tem dark mode, só faixas escuras pontuais,
   então estas páginas também não têm. Não existe toggle.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Rampa neutra fria — os cinzas da landing, estendidos nos degraus que só
     estas páginas precisam (fundo de hover, filetes, scrollbar). Os degraus
     comentados são os que existem literalmente na landing. */
  --zinc-50:  #F5F7FC;  /* landing --bg2 */
  --zinc-100: #EDF1F9;
  --zinc-200: #E5E9F2;  /* landing --br  */
  --zinc-300: #CBD4E4;
  --zinc-400: #A5AFC3;
  --zinc-500: #8A94A8;  /* landing --mu  */
  --zinc-600: #4B5568;  /* landing --txt */
  --zinc-700: #36415A;
  --zinc-900: #0E1526;  /* landing --ink */

  /* Azul — o único destaque, como o laranja era antes.
     Nomeado --accent-* e não --blue-* porque as regras abaixo falam em
     degraus (600 = cheio, 700 = texto sobre fundo claro), não em cor. */
  --accent-100: #EEF2FF;  /* landing --blue-bg */
  --accent-400: #4A6BFF;  /* landing --blue-l  */
  --accent-500: #2148E8;  /* landing --blue    */
  --accent-600: #2148E8;  /* landing --blue    */
  --accent-700: #1636B8;  /* landing --blue-d  */
  --accent-glow: rgba(33, 72, 232, .22);          /* landing --blue-glow */
  --accent-grad: linear-gradient(135deg, #1636B8 0%, #2148E8 60%, #4A6BFF 100%);

  /* Na landing o botão cheio é texto BRANCO sobre o gradiente azul — o
     laranja pedia texto escuro, o azul não. */
  --on-accent: #FFFFFF;

  --surface: #FFFFFF;  /* landing --card */

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(14, 21, 38, .04);
  --shadow-md: 0 1px 2px rgba(14, 21, 38, .04), 0 8px 28px rgba(14, 21, 38, .07); /* landing --shadow */
  --shadow-lg: 0 18px 50px rgba(14, 21, 38, .12), 0 4px 12px rgba(14, 21, 38, .06);

  /* A landing alterna faixas brancas e --bg2; um documento longo fica melhor
     na faixa tingida, com os cartões brancos por cima. */
  --page: var(--zinc-50);
  --text: var(--zinc-900);
  --muted: var(--zinc-500);
  --border: var(--zinc-200);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: .5rem;
}
:focus:not(:focus-visible) { outline: none; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.026em; line-height: 1.12; font-weight: 800; }
a { color: inherit; text-decoration: none; }

.nums { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'cv01' 1; letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent-grad); color: var(--on-accent);
  padding: .7rem 1.1rem; border-radius: .625rem; font-weight: 700; font-size: .9rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-700);
  background: var(--accent-100);
  border: 1px solid color-mix(in oklch, var(--accent-400) 35%, transparent);
  padding: .34rem .7rem; border-radius: 999px;
}
.eyebrow .dot { width: .42rem; height: .42rem; border-radius: 999px; background: var(--accent-600); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap; border-radius: .75rem; font-weight: 700; font-size: .92rem;
  padding: 0 1.4rem; height: 3rem; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-display); letter-spacing: .01em;
  transition: background-color .18s, border-color .18s, transform .05s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-grad); color: var(--on-accent);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { background: var(--surface); color: var(--accent-700); border-color: var(--zinc-300); border-width: 1.5px; }
.btn-outline:hover { border-color: var(--accent-400); background: var(--accent-100); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--accent-500); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------- header (idêntico à landing) ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
header.site.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .pro { color: var(--accent-600); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--zinc-600); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .625rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--zinc-600); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--zinc-100); color: var(--text); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

.logo-mark { width: 2.1rem; height: 2.1rem; flex: none; }

/* ---------- barra de progresso de leitura ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--accent-grad); transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform; pointer-events: none;
}

/* ======================= cabeçalho do documento ======================= */
.doc-hero { position: relative; padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem); overflow: hidden; }
.doc-hero::before {
  content: ""; position: absolute; top: -55%; right: -12%; width: 42rem; height: 42rem;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent-500) 18%, transparent) 0%, transparent 62%);
  opacity: .5; pointer-events: none; filter: blur(8px);
}
.doc-hero > .wrap { position: relative; }

.crumbs { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.3rem; flex-wrap: wrap; }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: .85rem; height: .85rem; opacity: .6; flex: none; }
.crumbs [aria-current] { color: var(--zinc-700); font-weight: 500; }

.doc-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 1rem + 4.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.032em;
  max-width: 18ch;
}
.doc-hero .lead {
  margin-top: 1.1rem; font-size: clamp(1rem, .95rem + .35vw, 1.15rem);
  color: var(--zinc-600); max-width: 58ch;
}

/* faixa de metadados — leitura de capa de contrato */
.doc-meta {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.doc-meta div { padding: 1rem 1.15rem; border-left: 1px solid var(--border); }
.doc-meta div:first-child { border-left: 0; }
.doc-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.doc-meta dd { margin-top: .3rem; font-size: .92rem; font-weight: 600; font-family: var(--font-display); line-height: 1.35; }

.doc-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.doc-actions .hint { font-size: .82rem; color: var(--muted); }

/* ======================= layout índice + artigo ======================= */
.doc-layout {
  display: grid; grid-template-columns: 16.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

/* --- índice lateral --- */
.toc { position: sticky; top: 5.6rem; min-width: 0; }
.toc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  color: var(--muted); font-family: var(--font-sans);
  padding: .8rem 0; border-bottom: 1px solid var(--border);
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary .chev { width: 1rem; height: 1rem; transition: transform .2s var(--ease-out); }
.toc[open] > summary .chev { transform: rotate(180deg); }

.toc nav { margin-top: .7rem; max-height: calc(100vh - 10rem); overflow-y: auto; overscroll-behavior: contain; }
.toc nav a {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: .1rem;
  font-size: .85rem; line-height: 1.35; color: var(--zinc-600);
  padding: .42rem .55rem .42rem .7rem;
  border-left: 2px solid transparent; border-radius: 0 .4rem .4rem 0;
  transition: color .15s, background-color .15s, border-color .15s;
}
.toc nav a .n { font-variant-numeric: tabular-nums; color: var(--zinc-400); font-weight: 600; }
.toc nav a:hover { color: var(--text); background: var(--zinc-100); }
.toc nav a.active {
  color: var(--text); font-weight: 600;
  border-left-color: var(--accent-600);
  background: color-mix(in oklch, var(--accent-500) 9%, transparent);
}
.toc nav a.active .n { color: var(--accent-700); }

/* --- corpo do documento --- */
/* min-width:0 — sem isso o item de grid não encolhe abaixo do min-content
   das tabelas (min-width:34rem) e o overflow-x do .table-scroll nunca age */
.doc-body { max-width: 74ch; min-width: 0; }

.doc-note {
  display: flex; gap: .85rem; align-items: flex-start;
  border: 1px solid var(--border); border-left: 3px solid var(--accent-600);
  border-radius: .3rem .9rem .9rem .3rem;
  background: var(--surface); padding: 1rem 1.15rem;
  font-size: .9rem; color: var(--zinc-600); margin-bottom: 2.6rem;
}
.doc-note svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--accent-600); margin-top: .1rem; }
.doc-note strong { color: var(--text); font-weight: 600; }

.doc-intro { font-size: 1.02rem; color: var(--zinc-700); margin-bottom: 2.8rem; }
.doc-intro p + p { margin-top: 1rem; }

.doc-sec { padding-top: .5rem; margin-bottom: 2.9rem; scroll-margin-top: 5.8rem; }
.doc-sec > h2 {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: baseline;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
  padding-bottom: .8rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.doc-sec > h2 .sec-num {
  font-variant-numeric: tabular-nums; font-size: .8em; font-weight: 800;
  color: var(--accent-700); letter-spacing: 0;
}
.doc-sec p { margin-bottom: 1rem; }
.lnk { color: var(--accent-700); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent-500) 40%, transparent); text-underline-offset: .18em; transition: text-decoration-color .15s; }
.lnk:hover { text-decoration-color: var(--accent-600); }
.doc-sec p:last-child { margin-bottom: 0; }
.doc-sec strong { font-weight: 600; color: var(--text); }
.doc-sec em { font-style: normal; color: var(--zinc-600); }

/* cláusulas numeradas (1.1, 1.2 ...) */
.clause { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .35rem 0; margin-bottom: 1.05rem; }
.clause > .k {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: .92rem;
  color: var(--accent-700); padding-top: .1rem;
}
.clause > .t { min-width: 0; }
.clause > .t > p + p { margin-top: .7rem; }

/* listas */
.doc-sec ul, .doc-sec ol { margin: 0 0 1.1rem 0; padding-left: 0; list-style: none; }
.doc-sec ul li {
  position: relative; padding-left: 1.4rem; margin-bottom: .6rem;
}
.doc-sec ul li::before {
  content: ""; position: absolute; left: .25rem; top: .62em;
  width: .38rem; height: .38rem; border-radius: 999px; background: var(--accent-600);
}
.doc-sec ol { counter-reset: li; }
.doc-sec ol li { position: relative; padding-left: 2rem; margin-bottom: .6rem; counter-increment: li; }
.doc-sec ol li::before {
  content: "(" counter(li, lower-roman) ")"; position: absolute; left: 0; top: 0;
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-700); font-size: .88rem;
}

/* definições (Termos §1) */
.defs { display: grid; gap: .1rem; }
.defs > div {
  border: 1px solid var(--border); border-radius: .75rem; background: var(--surface);
  padding: .95rem 1.1rem; margin-bottom: .6rem;
  transition: border-color .15s, box-shadow .15s;
}
.defs > div:hover { border-color: var(--zinc-300); box-shadow: var(--shadow-sm); }
.defs dt { font-family: var(--font-display); font-weight: 700; font-size: .98rem; margin-bottom: .3rem; }
.defs dd { font-size: .93rem; color: var(--zinc-600); }

/* tabelas */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: .9rem;
  background: var(--surface); margin-bottom: 1.3rem;
  /* barra sempre visível: sinaliza que a tabela rola na horizontal */
  scrollbar-width: thin; scrollbar-color: var(--zinc-300) transparent;
}
.table-scroll::-webkit-scrollbar { height: .5rem; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--zinc-300); border-radius: 999px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--zinc-400); }
.doc-sec table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 34rem; }
.doc-sec thead th {
  text-align: left; font-family: var(--font-sans);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  color: var(--muted); padding: .85rem 1.05rem; border-bottom: 1px solid var(--border);
  background: var(--zinc-50); white-space: nowrap;
}
.doc-sec tbody td { padding: .9rem 1.05rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.doc-sec tbody tr:last-child td { border-bottom: 0; }
.doc-sec tbody tr:hover td { background: color-mix(in oklch, var(--accent-500) 5%, transparent); }
.doc-sec tbody td:first-child { font-weight: 600; color: var(--text); }
.doc-sec td .legal-ref {
  display: inline-block; margin-top: .3rem;
  font-size: .76rem; font-weight: 600; color: var(--accent-700);
  background: var(--accent-100); border-radius: 999px; padding: .12rem .55rem;
}

/* bloco de aceite (fac-símile do documento) */
.accept-block {
  border: 1px solid var(--border); border-radius: 1rem; background: var(--surface);
  box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1.3rem;
}
.accept-block h3 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
  font-family: var(--font-sans); font-weight: 700; color: var(--muted); margin-bottom: 1.1rem;
}
.accept-list { display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.accept-list > li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; font-size: .93rem; padding: 0; margin: 0; }
.accept-list > li::before { content: none; }
.accept-list .box {
  width: 1.1rem; height: 1.1rem; border-radius: .3rem; margin-top: .18rem;
  border: 1.5px solid var(--zinc-400); flex: none;
}
.accept-list .opt { color: var(--muted); }
.accept-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.4rem; padding-top: 1.3rem; border-top: 1px dashed var(--border); }
.accept-fields > div:first-child { grid-column: 1 / -1; }
.accept-fields span {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; color: var(--muted); margin-bottom: .55rem;
}
.accept-fields i { display: block; height: 1px; background: var(--zinc-300); }

/* contato / encarregado */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  border: 1px solid var(--border); border-radius: .9rem; background: var(--surface);
  padding: 1.15rem 1.3rem; box-shadow: var(--shadow-sm);
}
.contact-card .ico {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: .65rem; background: var(--accent-grad); color: var(--on-accent);
}
.contact-card .ico svg { width: 1.25rem; height: 1.25rem; }
.contact-card .txt { min-width: 0; }
.contact-card .txt b { display: block; font-family: var(--font-display); font-size: .95rem; }
.contact-card a.mail { color: var(--accent-700); font-weight: 600; word-break: break-all; }
.contact-card a.mail:hover { text-decoration: underline; }

/* rodapé do artigo */
.doc-end { margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.doc-end h2 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.related a {
  display: block; border: 1px solid var(--border); border-radius: .9rem;
  background: var(--surface); padding: 1.1rem 1.2rem;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease-out);
}
.related a:hover { border-color: color-mix(in oklch, var(--accent-500) 45%, transparent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--accent-700); }
.related b { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-top: .35rem; }
.related p { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

.back-top { display: inline-flex; align-items: center; gap: .45rem; margin-top: 2rem; font-size: .88rem; font-weight: 600; color: var(--zinc-600); transition: color .15s; }
.back-top:hover { color: var(--accent-700); }
.back-top svg { width: 1rem; height: 1rem; }

/* ======================= hub /legal ======================= */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.hub-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--surface);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease-out);
}
.hub-card:hover { border-color: color-mix(in oklch, var(--accent-500) 45%, transparent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hub-card .ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--accent-100); color: var(--accent-700); border: 1px solid color-mix(in oklch, var(--accent-400) 35%, transparent); }
.hub-card .ico svg { width: 1.3rem; height: 1.3rem; }
.hub-card h2 { font-size: 1.3rem; margin-top: 1.1rem; }
.hub-card p { margin-top: .6rem; font-size: .93rem; color: var(--zinc-600); flex: 1; }
.hub-card .go { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--accent-700); }
.hub-card .go svg { width: 1rem; height: 1rem; transition: transform .18s var(--ease-out); }
.hub-card:hover .go svg { transform: translateX(3px); }

/* ---------- footer (idêntico à landing) ---------- */
footer.site { border-top: 1px solid var(--border); padding: 3rem 0 2.2rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand p { margin-top: .9rem; font-size: .9rem; color: var(--muted); max-width: 30ch; }
.foot-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: var(--font-sans); font-weight: 600; margin-bottom: .9rem; }
.foot-col a { display: block; font-size: .9rem; color: var(--zinc-600); padding: .28rem 0; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; font-size: .84rem; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile menu ---------- */
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ======================= responsive ======================= */
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .toc {
    position: static; border: 1px solid var(--border); border-radius: .9rem;
    background: var(--surface); padding: 0 1rem .3rem;
  }
  .toc > summary { border-bottom-color: transparent; }
  .toc[open] > summary { border-bottom-color: var(--border); }
  .toc nav { max-height: 22rem; padding-bottom: .8rem; }
  .doc-body { max-width: none; }
}
@media (max-width: 860px) {
  .doc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-meta div:nth-child(3) { border-left: 0; }
  .doc-meta div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hub-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .related { grid-template-columns: 1fr; }
  .mobile-menu.open {
    display: block; position: fixed; inset: 4.4rem 0 auto 0; z-index: 49;
    background: var(--page); border-bottom: 1px solid var(--border); padding: 1rem 0 1.5rem;
    animation: drop .22s var(--ease-out) both;
  }
  .mobile-menu.open a { display: block; padding: .85rem clamp(1.15rem, 4vw, 2.5rem); font-weight: 500; color: var(--zinc-700); }
  .mobile-menu.open .btn { margin: .6rem clamp(1.15rem, 4vw, 2.5rem) 0; display: flex; }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .doc-meta { grid-template-columns: 1fr; }
  .doc-meta div { border-left: 0; border-top: 1px solid var(--border); }
  .doc-meta div:first-child { border-top: 0; }
  .clause { grid-template-columns: 1fr; gap: .15rem; }
  .accept-fields { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .progress { display: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ======================= impressão ======================= */
@media print {
  header.site, footer.site, .progress, .toc, .doc-actions, .doc-end, .skip-link, .mobile-menu { display: none !important; }
  .doc-hero::before { display: none; }
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.45; }
  .doc-layout { display: block; padding-bottom: 0; }
  .doc-body { max-width: none; }
  .doc-hero { padding: 0 0 1rem; }
  .doc-sec { page-break-inside: auto; margin-bottom: 1.4rem; }
  .doc-sec > h2 { page-break-after: avoid; }
  .doc-meta { box-shadow: none; }
  .table-scroll { overflow: visible; }
  a[href]::after { content: ""; }
}
