/* =============================================================================
   Bestsellia — sistema visual do site público
   =============================================================================

   Uma folha só para as quatro páginas (index, termos, privacidade,
   excluir-conta). Elas são servidas como arquivos estáticos pelo nginx, então
   um `<link>` de mesma origem custa uma requisição e some no cache — melhor que
   repetir 400 linhas de CSS em cada arquivo, que foi como isto nasceu.

   AS CORES SAEM DE `apps/mobile/src/constants/brand.ts`, não de palpite. Mesma
   regra 60-30-10 do app (CLAUDE.md): a superfície é neutra e o azul é o
   destaque. Se a marca mudar lá, muda aqui — os valores estão comentados com o
   nome do token de origem para o próximo a mexer saber de onde vieram.

   FONTE É A DO SISTEMA, de propósito. Google Fonts numa página de política de
   privacidade manda o IP de quem lê para um terceiro que a própria página não
   declara — além de custar um DNS + TLS + download antes do primeiro texto.
   ============================================================================= */

/* ---------------------------------------------------------------- tokens --- */

:root {
  /* Neutros — NEUTRAL em brand.ts (o app é escuro; o site nasce igual). */
  --bg: #17191C;
  --bg-deep: #101215;
  --surface: #212327;
  --surface-high: #2B2E33;
  --border: #32363C;
  --border-soft: #26292E;

  --text: #FFFFFF;
  --text-muted: #9BA0A6;
  --text-dim: #6E747B;

  /* Azul da fita — BRAND.accentOnDark / BRAND.accent / BRAND.ribbon. */
  --accent: #5AAFEA;
  --accent-solid: #1B74B8;
  --accent-deep: #1668A8;
  --on-accent: #FFFFFF;

  /* Índigo do ícone — BRAND.iconBackground. SÓ como fundo de arte da marca
     (o cartão do logo), nunca como superfície de interface: a regra do app. */
  --brand-card: #102868;

  --danger: #E5646A;
  --danger-solid: #C43B42;
  --success: #4ADE80;

  --radius: 14px;
  --radius-lg: 20px;
  --measure: 68ch;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px -20px rgba(0, 0, 0, .7);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --speed: .45s;

  color-scheme: dark;
}

/* O tema claro não é um segundo design — é o mesmo, com os neutros virados.
   Quem lê um contrato de 20 páginas no meio do dia merece o modo que pediu. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-deep: #F4F5F7;
    --surface: #F7F8FA;
    --surface-high: #EEF0F3;
    --border: #DFE2E7;
    --border-soft: #EAECEF;

    --text: #16181B;
    --text-muted: #545A61;
    --text-dim: #7A8189;

    --accent: #1B74B8;
    --accent-solid: #1B74B8;
    --accent-deep: #145A8D;

    --danger: #C43B42;
    --danger-solid: #C43B42;
    --success: #157F45;

    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .16);
    --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 24px 60px -20px rgba(16, 24, 40, .24);

    color-scheme: light;
  }
}

/* ------------------------------------------------------------------ base --- */

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

html {
  scroll-behavior: smooth;
  /* O cabeçalho é fixo: sem isto, pular para uma âncora esconde o título dela. */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-solid); color: #fff; }

img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border-soft); }

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.025em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .5);
  transition: transform var(--speed) var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-high);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* No celular os três links + o nome não cabem em uma linha, e o que sobra quebra
   para uma segunda — um cabeçalho de ~100px fixo comendo a tela de quem só quer
   ler. Abaixo de 600px o WORDMARK SAI e o cartão da marca fica sozinho: ele já
   identifica, é o mesmo ícone do app, e devolve ~90px para a navegação. */
@media (max-width: 600px) {
  .site-header__inner { padding: 11px 16px; gap: 10px; }
  .brand__name { display: none; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 7px 9px; font-size: 13px; }
  /* "Termos de uso" vira "Termos" — o resto do rótulo mora num span. */
  .nav-extra { display: none; }
}

@media (max-width: 380px) {
  .site-nav a { padding: 6px 7px; font-size: 12.5px; }
}

/* ⚠️ A navegação mantém `flex-wrap: wrap` (o padrão herdado do bloco base) de
   propósito — não troque por `nowrap` para forçar uma linha só. Quem resolve o
   cabeçalho de duas linhas no celular é o encolhimento do rótulo, acima; o wrap
   fica como rede de segurança para a largura que ninguém previu (fonte grande do
   sistema, tradução mais longa, aparelho estreito). Duas linhas é feio e
   recuperável; conteúdo estourando na horizontal, não. */

/* Barra de leitura — só nas páginas longas, alimentada por --progress no JS. */
.reading-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: transform .1s linear;
}

/* ------------------------------------------------------------------ hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 22px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* Dois halos de luz que respiram devagar. É a única "decoração" do site, e ela
   fica atrás de tudo (z-index negativo) para nunca disputar com o texto. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: min(620px, 90vw);
  aspect-ratio: 1;
  top: -18%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, var(--accent-solid), transparent 68%);
  animation: breathe 13s var(--ease) infinite;
}
.hero::after {
  width: min(460px, 76vw);
  aspect-ratio: 1;
  bottom: -14%;
  right: -8%;
  background: radial-gradient(circle, var(--brand-card), transparent 68%);
  opacity: .55;
  animation: breathe 17s var(--ease) infinite reverse;
}
@media (prefers-color-scheme: light) {
  .hero::before { opacity: .16; }
  .hero::after { opacity: .1; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.16) translateY(22px); }
}

.hero__inner { max-width: 760px; }

.hero__mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 28px;
  display: block;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: clamp(40px, 8.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 0 0 18px;
}
.hero h1 span { color: var(--accent); }

.hero__tagline {
  font-size: clamp(17px, 2.6vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 30em;
  margin: 0 auto 40px;
  text-wrap: balance;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --------------------------------------------------------------- botões --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-solid);
  color: var(--on-accent);
  box-shadow: 0 6px 20px -8px var(--accent-solid);
}
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 10px 28px -8px var(--accent-solid); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-high); border-color: var(--text-dim); }

.btn--danger {
  background: var(--danger-solid);
  color: #fff;
  box-shadow: 0 6px 20px -8px var(--danger-solid);
}
.btn--danger:hover { filter: brightness(1.08); }

.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px 110px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: left;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------- página legal --- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 132px 22px 90px;
}

.doc__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.doc h1 {
  font-size: clamp(30px, 5.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 12px;
  text-wrap: balance;
}

.doc__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}
.doc__meta::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

/* Sumário — um documento de 14 seções sem índice obriga a rolar no escuro. */
.toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 0 0 52px;
}
/* `.doc .toc h2` e não `.toc h2`: o sumário mora DENTRO de `.doc`, então os dois
   seletores casam com o mesmo elemento — e com a especificidade empatada (uma
   classe + um elemento) quem vence é o que vier depois na folha, que é o `.doc h2`
   das seções. O título do sumário saía no tamanho de um título de seção. */
.doc .toc h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: none;
  padding-top: 0;
  scroll-margin-top: 0;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 28px;
}
.toc li { counter-increment: toc; margin: 0 0 7px; break-inside: avoid; }
.toc a {
  display: flex;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.toc a::before {
  content: counter(toc);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  padding-top: 2px;
  flex: none;
}
.toc a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.doc h2 {
  font-size: clamp(21px, 3.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 60px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 92px;
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.doc h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 34px 0 10px;
}

.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--text-dim); }
.doc strong { font-weight: 700; color: var(--text); }
.doc em { color: var(--text-muted); }

/* Bloco de destaque — usado nos valores dos planos e nos avisos. */
.callout {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 20px;
}
.callout > :last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
thead th {
  background: var(--surface-high);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .18s var(--ease); }
tbody tr:hover { background: var(--surface); }

/* ---------------------------------------------------- formulário / conta --- */

.form-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 132px 22px 90px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.panel__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  margin: 0 auto 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.panel__icon--danger {
  background: color-mix(in srgb, var(--danger) 15%, transparent);
  color: var(--danger);
}
.panel__icon--success {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
}

.panel h1 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px;
}
.panel__lead {
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  margin: 0 0 26px;
  text-wrap: pretty;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Erro embaixo do campo. Ocupa altura só quando tem texto — reservar a linha
   sempre abriria um vão entre todos os campos do formulário. */
.field-error {
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.4;
  margin: 6px 0 0;
}
.field-error:empty { display: none; }

/* Campo com botão dentro (o olho da senha). */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.input-toggle:hover { color: var(--text); background: var(--surface-high); }

/* Checkbox do aceite. O <input> real fica invisível mas PRESENTE (não
   `display:none`), senão ele sai da ordem de tabulação e do alcance do leitor
   de tela — num aceite de termos isso não é detalhe estético. */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  /* Folga embaixo porque o rótulo quebra em duas linhas no celular e encostava
     no botão de enviar — aceite de termos colado no botão parece pegadinha. */
  margin: 8px 0 12px;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 20px; height: 20px;
  margin: 0;
  cursor: pointer;
}
.checkbox__box {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.checkbox input:checked + .checkbox__box {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: #fff;
}
.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.checkbox__label { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.checkbox__label a { color: var(--accent); }

.loss-list {
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 22px;
}

/* Mesma caixa, sem a carga do vermelho: usada para "próximos passos". */
.loss-list--neutral .passos {
  margin: 0;
  padding-left: 20px;
  counter-reset: none;
}
/* ⚠️ Sem isto o ponto vermelho de `.loss-list li::before` (que marca o que a
   pessoa PERDE ao apagar a conta) vaza para cá e pousa em cima da primeira
   letra de cada passo — bolinha vermelha num passo a passo de boas-vindas. */
.loss-list--neutral .passos li::before { content: none; }
.loss-list--neutral .passos li {
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 8px;
  padding-left: 2px;
}
.loss-list--neutral .passos li:last-child { margin-bottom: 0; }
.loss-list--neutral .passos li::marker { color: var(--accent); font-weight: 700; }
.loss-list h2 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.loss-list ul { margin: 0; padding: 0; list-style: none; }
.loss-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.5;
}
.loss-list li:last-child { margin-bottom: 0; }
.loss-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--danger);
}

.form-msg {
  font-size: 13.5px;
  margin-top: 12px;
  min-height: 1.2em;
  text-align: center;
}
.form-msg--error { color: var(--danger); }

.footnote {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  margin: 22px 0 0;
}

/* --------------------------------------------------------------- rodapé --- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-deep);
}
.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 22px 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__links a { color: var(--text-muted); font-size: 13.5px; }
.site-footer__links a:hover { color: var(--accent); }

/* ------------------------------------------------------ voltar ao topo --- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--surface-high); }

/* ------------------------------------------------------------ animação --- */

/* O estado inicial escondido só existe quando o JS está vivo (`.js` no <html>,
   escrito por um script inline no <head>). Sem isso, JS desligado ou quebrado
   deixaria a política de privacidade INVISÍVEL — que é o pior jeito possível de
   falhar numa página exigida por lei. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal].is-visible { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------- print --- */

@media print {
  .site-header, .to-top, .toc, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { padding-top: 0; max-width: none; }
  .doc h2 { page-break-after: avoid; }
  .table-wrap { overflow: visible; }
  a { color: #000; text-decoration: underline; }
}
