/* Super Jogos — site institucional, v2.
   Mobile first. Pontos de quebra: 40rem (tablet), 56rem (desktop).
   Alvos de toque com 44px no mínimo. Cores só pelos tokens abaixo. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Marca */
  --feltro: #164b3b;
  --feltro-fundo: #0f3329;
  --feltro-borda: #0b231c;
  --lima: #c1ef3a;
  --lima-sombra: #7fa21c;
  --ambar: #e9ad32;
  --ambar-sombra: #a8761a;
  /* Modo Batalha: o marrom da carteira de fichas no app */
  --batalha: #4a2c0e;
  --batalha-fundo: #3a2209;

  /* Superfícies e texto */
  --papel: #f5f8ec;
  --papel-2: #e9f0d6;
  --linha: #c9d6ad;
  --tinta: #0f3329;
  --texto-suave: #3d5a4f;
  --sobre-feltro: #dfe9d6;
  --sobre-feltro-suave: #b9cdbd;
  --rodape-texto: #cfdccf;

  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --texto: "Fredoka", "Segoe UI", system-ui, sans-serif;

  --largura: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --toque: 44px;
  --crimp: 28px;
  --raio: 14px;
  --dur: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; }
a, button, summary { touch-action: manipulation; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ambar); }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); }
p { margin: 0 0 1em; max-width: 62ch; }

.envoltorio { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--gutter); }

.pular {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  display: inline-flex; align-items: center; min-height: var(--toque);
  background: var(--lima); color: var(--tinta); padding: 0 1rem; border-radius: 999px; font-weight: 600;
}
.pular:focus { top: 1rem; }

/* ---------- Botões ---------- */
.botoes { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  font-family: var(--display); font-size: 1.15rem; line-height: 1;
  color: var(--tinta); background: var(--lima);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--lima-sombra);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.botao:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--lima-sombra); }
.botao:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lima-sombra); }
.botao-ambar { background: var(--ambar); box-shadow: 0 4px 0 var(--ambar-sombra); }
.botao-ambar:hover { box-shadow: 0 5px 0 var(--ambar-sombra); }
.botao-ambar:active { box-shadow: 0 1px 0 var(--ambar-sombra); }
.botao-contorno { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.botao-contorno:hover, .botao-contorno:active { transform: none; box-shadow: inset 0 0 0 2px var(--ambar); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--feltro); color: var(--papel);
}
.topo .envoltorio { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.topo-logo { display: inline-flex; align-items: center; min-height: var(--toque); }
.topo-logo img { width: 5.4rem; }
.menu { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 1.1rem; }
.menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--lima); }
.menu .idioma {
  display: inline-flex; min-height: var(--toque); padding: 0 1.1rem; margin-top: 0.75rem;
  border-radius: 999px; box-shadow: inset 0 0 0 2px var(--lima); color: var(--lima);
}
.menu .idioma:hover { background: var(--lima); color: var(--tinta); }
.menu-botao { display: none; }

/* Sem JS o menu fica sempre aberto; com JS vira painel no celular */
.js .menu-botao {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: var(--toque); padding: 0 1.1rem;
  font-family: var(--display); font-size: 1.05rem; color: var(--lima);
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--lima);
}
.js .menu-botao::after {
  content: ""; width: 0.55rem; height: 0.55rem;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) ease;
}
.js .menu-aberto .menu-botao { background: var(--lima); color: var(--tinta); }
.js .menu-aberto .menu-botao::after { transform: translateY(2px) rotate(-135deg); }
.js .topo nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--feltro); padding: 0.25rem var(--gutter) 1.25rem;
  box-shadow: 0 18px 30px rgb(8 30 23 / 0.35);
}
.js .topo.menu-aberto nav { display: block; }
.js .menu li + li { border-top: 1px solid rgb(255 255 255 / 0.1); }
.js .menu li:last-child { border-top: 0; }

@media (min-width: 48rem) {
  .topo-logo img { width: 7rem; }
  .js .menu-botao { display: none; }
  .js .topo nav, .topo nav { display: block; position: static; padding: 0; box-shadow: none; background: none; }
  .menu, .js .menu { flex-direction: row; align-items: center; gap: 0 1.4rem; font-size: 1rem; }
  .js .menu li + li { border-top: 0; }
  .menu .idioma { margin-top: 0; }
}

/* ---------- Hero ---------- */
.feltro {
  background:
    linear-gradient(to bottom, transparent 60%, var(--feltro-fundo)),
    radial-gradient(110% 90% at 70% 30%, #1f6250 0%, var(--feltro) 50%, var(--feltro-fundo) 100%);
  color: var(--papel);
  position: relative;
  overflow: hidden;
}
/* Celular: título com o Breninho em meio corpo ao lado, apontando para ele */
.hero .envoltorio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 34vw, 10rem);
  gap: 0 0.25rem;
  align-items: start;
  padding-top: 1.75rem;
  padding-bottom: 2.75rem;
}
.hero-texto { display: contents; }
.hero-texto > *, .hero-palco > * { grid-column: 1 / -1; }
.hero h1 { grid-column: 1; grid-row: 1; align-self: center; color: var(--lima); font-size: clamp(1.85rem, 8.2vw, 2.4rem); margin-bottom: 1rem; }
.hero-palco { display: contents; }
.hero-breninho {
  grid-column: 2; grid-row: 1;
  height: clamp(9.5rem, 42vw, 12.5rem); overflow: hidden; margin-right: -0.5rem;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero-breninho img { width: 100%; }
.hero-celular { display: none; }
.hero-lead { font-size: 1.08rem; color: var(--sobre-feltro); max-width: 42ch; }
.hero-acoes { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.5rem; }
.hero-acoes .botao { width: 100%; }
.em-breve {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: 0; min-height: var(--toque); padding: 0.4rem 1rem;
  border: 2px dashed rgb(193 239 58 / 0.55); border-radius: 999px;
  font-weight: 600; color: var(--papel);
}
.em-breve svg { color: var(--lima); flex: none; }

@media (min-width: 56rem) {
  .hero .envoltorio {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem; align-items: center;
    padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0;
  }
  .hero-texto { display: block; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(2.6rem, 1.4rem + 3vw, 4.2rem); max-width: 14ch; }
  .hero-lead { font-size: 1.2rem; }
  .hero-acoes { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
  .hero-acoes .botao { width: auto; }
  .hero-palco { display: block; position: relative; align-self: end; height: 36rem; }
  .hero-breninho {
    position: absolute; left: 0; bottom: 0; z-index: 2;
    width: 15rem; height: auto; margin: 0; transform: none;
    -webkit-mask-image: none; mask-image: none;
    filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.4));
  }
  .hero-celular {
    display: block; position: absolute; right: 0; bottom: 2.5rem;
    width: 15.5rem; transform: rotate(4deg);
    animation: chega 700ms cubic-bezier(.2, .9, .3, 1.15) both 150ms;
  }
}
@media (min-width: 64rem) { .hero-celular { right: 1.5rem; width: 16.5rem; } }
@keyframes chega { from { transform: translateY(8%) rotate(9deg); opacity: 0; } to { transform: rotate(4deg); opacity: 1; } }

/* Moldura de celular para as telas do jogo */
.celular {
  aspect-ratio: 390 / 844;
  border: 0.45rem solid var(--feltro-borda);
  border-radius: 1.9rem;
  background: var(--feltro-borda);
  overflow: hidden;
  box-shadow: 0 1px 0 1px rgb(255 255 255 / 0.08) inset, 0 26px 50px rgb(5 22 16 / 0.45);
}
.celular img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.45rem; }

/* A serrilha da tampinha: emenda entre o feltro e a página */
.serrilha {
  height: var(--crimp);
  background: radial-gradient(circle at 50% 0, var(--feltro-fundo) calc(var(--crimp) * 0.62), transparent calc(var(--crimp) * 0.62 + 1px)) 0 0 / calc(var(--crimp) * 1.15) var(--crimp) repeat-x;
  margin-bottom: calc(var(--crimp) * -1);
  position: relative; z-index: 2;
}

/* ---------- Seções ---------- */
section[id] { scroll-margin-top: 4.25rem; }
.secao { padding-block: 3.5rem; }
@media (min-width: 56rem) { .secao { padding-block: 6rem; } }
.secao-clara { background: var(--papel); }
.secao-papel2 { background: var(--papel-2); }
.secao-lima { background: var(--lima); }
.secao-feltro { background: var(--feltro); color: var(--papel); }
.secao-intro { font-size: 1.08rem; margin-bottom: 2rem; }

/* Sobre */
.sobre-lead { font-size: 1.2rem; font-weight: 500; }
@media (min-width: 56rem) {
  .sobre-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  .sobre-lead { font-size: 1.45rem; line-height: 1.45; }
}

/* Como funciona: é um fluxo de verdade, por isso numerado */
.passos { list-style: none; counter-reset: passo; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; }
.passos li::before {
  content: counter(passo);
  grid-row: span 2;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--feltro); color: var(--lima);
  font-family: var(--display); font-size: 1.5rem;
}
.passos h3 { margin: 0.35rem 0 0.3rem; font-size: 1.35rem; }
.passos p { margin: 0; color: var(--texto-suave); }
@media (min-width: 56rem) {
  .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; position: relative; }
  .passos::before {
    content: ""; position: absolute; top: 1.5rem; left: 3rem; right: 3rem;
    border-top: 3px dashed rgb(22 75 59 / 0.3);
  }
  .passos li { grid-template-columns: 1fr; position: relative; }
  .passos li::before { grid-row: auto; margin-bottom: 1rem; box-shadow: 0 0 0 8px var(--papel-2); }
}

/* Jogos */
.jogos { display: grid; }
.jogo2 {
  display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: 1.1rem; align-items: center;
  padding-block: 1.4rem; border-top: 3px dashed rgb(15 51 41 / 0.25);
}
.jogo2:last-child { border-bottom: 3px dashed rgb(15 51 41 / 0.25); }
.jogo2 .celular { border-width: 0.3rem; border-radius: 1.1rem; box-shadow: 0 14px 26px rgb(5 22 16 / 0.3); }
.jogo2 .celular img { border-radius: 0.8rem; }
.jogo2 h3 { font-size: 1.9rem; margin-bottom: 0.2em; }
.jogo2 p { margin-bottom: 0; font-size: 0.98rem; }
.modalidades { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0.8rem 0 0; }
.modalidades li { background: var(--feltro); color: var(--lima); font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.8rem; border-radius: 999px; }
.nota-telas { font-size: 0.85rem; color: var(--texto-suave); margin: 1.5rem 0 0; }
@media (min-width: 56rem) {
  .jogos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .jogo2, .jogo2:last-child { grid-template-columns: 1fr; border: 0; padding: 0; align-items: start; }
  .jogo2 .celular { width: min(100%, 15rem); border-width: 0.45rem; border-radius: 1.9rem; margin-bottom: 1.25rem; box-shadow: 0 26px 46px rgb(5 22 16 / 0.35); }
  .jogo2 .celular img { border-radius: 1.45rem; }
  .jogo2 h3 { font-size: 2.2rem; }
  .jogo2 p { font-size: 1rem; }
}

/* Tampinhas × fichas: um cartão por modo, como as carteiras do app (verde na Diversão, âmbar na Batalha) */
.moedas { display: grid; gap: 1.25rem; }
.moeda {
  --cor: var(--lima);
  background: var(--feltro-fundo); border: 2px solid var(--cor); border-radius: 22px;
  padding: 1.25rem 1.25rem 0.5rem;
  box-shadow: 0 18px 34px rgb(5 22 16 / 0.35);
}
.moeda-batalha { --cor: var(--ambar); background: linear-gradient(to bottom, var(--batalha), var(--batalha-fundo)); }
.moeda img { height: 3.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 0.75rem; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35)); }
.moeda h3 { color: var(--cor); font-size: 1.9rem; margin-bottom: 0.5rem; }
.moeda h3 small { display: block; font-family: var(--texto); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sobre-feltro-suave); margin-bottom: 0.2rem; }
.moeda dl { margin: 0; }
.moeda dl div { padding-block: 0.75rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.moeda dt { font-weight: 600; color: var(--sobre-feltro); }
.moeda dd { margin: 0.15rem 0 0; }
.sim, .nao { display: inline-block; font-weight: 700; padding: 0 0.5rem; border-radius: 6px; }
.sim { background: var(--lima); color: var(--tinta); }
.nao { background: rgb(255 255 255 / 0.14); color: var(--papel); }
@media (min-width: 40rem) {
  .moedas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 56rem) {
  .moeda { padding: 1.75rem 2rem 0.75rem; }
  .moeda img { height: 5.5rem; }
  .moeda h3 { font-size: 2.3rem; }
  .moeda dl div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
  .moeda dd { margin: 0; }
}

/* Jogo limpo */
.regras { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.4rem; }
.regras li { padding-left: 2.75rem; position: relative; }
.regras li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; background: url("../img/tampinha.webp") center / contain no-repeat; }
.regras strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; margin-bottom: 0.2rem; }
@media (min-width: 40rem) { .regras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; } }
@media (min-width: 64rem) { .regras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Dúvidas */
.duvidas .envoltorio { display: grid; gap: 2rem; align-items: end; }
.duvidas-breninho { display: none; }
.duvidas details { border-bottom: 2px dashed var(--linha); }
.duvidas details:first-of-type { border-top: 2px dashed var(--linha); }
.duvidas summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; min-height: 56px; padding: 0.75rem 3rem 0.75rem 0;
  font-weight: 600; font-size: 1.1rem;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 1.75rem; height: 1.75rem; margin-top: -0.875rem; border-radius: 50%;
  background:
    linear-gradient(var(--lima), var(--lima)) center / 0.8rem 2.5px no-repeat,
    linear-gradient(var(--lima), var(--lima)) center / 2.5px 0.8rem no-repeat,
    var(--feltro);
  transition: transform var(--dur) ease;
}
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas summary:hover { color: var(--feltro); text-decoration: underline; text-decoration-color: var(--ambar); text-underline-offset: 4px; }
.duvidas details p { color: var(--texto-suave); padding-bottom: 1rem; margin: 0; }
@media (min-width: 56rem) {
  .duvidas .envoltorio { grid-template-columns: minmax(0, 1fr) 15rem; gap: 4rem; }
  .duvidas-breninho { display: block; width: 15rem; position: sticky; bottom: 0; }
}

/* ---------- Rodapé ---------- */
.rodape { background: var(--feltro-fundo); color: var(--rodape-texto); padding-block: 2.5rem 1.5rem; font-size: 0.95rem; }
.rodape .envoltorio { display: grid; gap: 1.75rem; }
.rodape-marca img { width: 6.5rem; margin-bottom: 1rem; }
.rodape-marca p { max-width: 46ch; }
.selo-linha { display: flex; align-items: center; gap: 0.6rem; }
.selo-18 {
  display: inline-grid; place-items: center; flex: none;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 2px solid var(--ambar); color: var(--ambar);
  font-family: var(--display); font-size: 0.95rem;
}
.rodape-coluna h2 { font-size: 1.15rem; color: var(--lima); margin-bottom: 0.25rem; }
.rodape-coluna ul { list-style: none; margin: 0; padding: 0; }
.rodape a, .link-botao { color: var(--papel); }
.rodape-coluna a, .link-botao { display: inline-flex; align-items: center; min-height: var(--toque); }
.rodape-coluna small { color: var(--rodape-texto); }
.link-botao {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.rodape-base { border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 1.25rem; margin: 0; font-size: 0.85rem; max-width: none; }
@media (min-width: 48rem) {
  .rodape { padding-block: 3.5rem 2rem; }
  .rodape .envoltorio { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
  .rodape-marca img { width: 8rem; }
  .rodape-base { grid-column: 1 / -1; }
}

/* ---------- Páginas legais ---------- */
.legal-topo { padding-block: 1.75rem 2.25rem; }
.legal-topo h1 { color: var(--lima); font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); }
.legal-topo p { color: var(--sobre-feltro); margin: 0; }
.legal { padding-block: 2.25rem 3.5rem; }
.legal .envoltorio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sumario { border-bottom: 3px dashed var(--linha); padding-bottom: 1rem; }
.sumario h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.sumario ol {
  display: flex; gap: 0.5rem; overflow-x: auto; list-style: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.4rem; scrollbar-width: thin;
}
.sumario li { flex: 0 0 auto; }
.sumario a {
  display: inline-flex; align-items: center; min-height: var(--toque); padding: 0 1rem;
  white-space: nowrap; background: var(--papel-2); color: var(--tinta);
  border-radius: 999px; font-size: 0.92rem; text-decoration: none;
}
.sumario a:hover { box-shadow: inset 0 0 0 2px var(--feltro); }
.texto-legal h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-top: 2.25rem; scroll-margin-top: 5rem; }
.texto-legal > h2:first-of-type { margin-top: 1.5rem; }
.texto-legal h3 { font-family: var(--texto); font-weight: 600; font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.texto-legal ul, .texto-legal ol { padding-left: 1.3rem; max-width: 62ch; }
.texto-legal li { margin-bottom: 0.4rem; }
.texto-legal p, .texto-legal li { line-height: 1.7; }
.tabela-rolagem { overflow-x: auto; }
.texto-legal .tabela-rolagem { margin: 1rem 0 1.5rem; }
.texto-legal table { border-collapse: collapse; min-width: 34rem; width: 100%; font-size: 0.95rem; }
.texto-legal th, .texto-legal td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
.texto-legal th { background: var(--papel-2); font-weight: 600; }
.texto-legal code { font-size: 0.9em; background: var(--papel-2); padding: 0.1em 0.35em; border-radius: 5px; }
.destaque { background: var(--papel-2); border-left: 5px solid var(--ambar); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; max-width: 62ch; }
.destaque p:last-child { margin-bottom: 0; }
.resumo { background: var(--feltro); color: var(--papel); border-radius: var(--raio); padding: 1.25rem 1.4rem; max-width: 62ch; }
.resumo h2 { font-size: 1.4rem; color: var(--lima); margin: 0 0 0.6rem; }
.resumo ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.resumo li { margin-bottom: 0.35rem; line-height: 1.55; }
.resumo p { margin: 0; font-size: 0.88rem; color: var(--sobre-feltro-suave); }
.voltar-topo { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--toque); margin-top: 2rem; font-weight: 600; }
.pendente { background: var(--ambar); color: var(--tinta); font-weight: 600; padding: 0 0.3em; border-radius: 4px; }
@media (min-width: 56rem) {
  .legal-topo { padding-block: 3.5rem; }
  .legal { padding-block: 4rem 6rem; }
  .legal .envoltorio { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .sumario { position: sticky; top: 5.5rem; border: 0; padding: 0; }
  .sumario ol { display: grid; gap: 0.1rem; overflow: visible; margin: 0; padding: 0; }
  .sumario a { background: none; padding: 0 0.6rem; margin-left: -0.6rem; white-space: normal; min-height: 36px; color: var(--texto-suave); }
  .sumario a:hover { box-shadow: none; color: var(--tinta); text-decoration: underline; }
}

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--papel); color: var(--tinta);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -3px 0 var(--feltro), 0 -16px 40px rgb(8 30 23 / 0.35);
  padding: 1.15rem var(--gutter) calc(1rem + env(safe-area-inset-bottom, 0px));
  max-height: 85vh; overflow-y: auto;
}
.cookies h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.cookies p { font-size: 0.93rem; margin-bottom: 0.5rem; }
.cookies .botoes { margin-top: 0.75rem; gap: 0.6rem; }
.cookies-acoes:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; }
.cookies-acoes [data-acao="personalizar"] { grid-column: 1 / -1; }
.cookies .botao { width: 100%; font-size: 1rem; padding: 0.7rem 0.5rem; }
.cookies .botao-contorno { color: var(--feltro); }
.cookies-opcoes { border: 0; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.6rem; }
.cookies-opcoes legend { font-weight: 600; margin-bottom: 0.5rem; }
.opcao { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; align-items: start; background: var(--papel-2); padding: 0.7rem 0.85rem; border-radius: var(--raio); cursor: pointer; }
.opcao input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; accent-color: var(--feltro); grid-row: span 2; }
.opcao span { font-weight: 600; }
.opcao small { font-size: 0.88rem; color: var(--texto-suave); grid-column: 2; }
@media (min-width: 40rem) {
  .cookies {
    left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    max-width: 40rem; margin-inline: auto; border-radius: 22px;
    box-shadow: 0 0 0 3px var(--feltro), 0 20px 50px rgb(8 30 23 / 0.45);
    padding: 1.4rem 1.5rem 1.5rem;
  }
  .cookies h2 { font-size: 1.6rem; }
  .cookies-acoes:not([hidden]) { display: flex; }
  .cookies .botao { width: auto; padding: 0.7rem 1.2rem; }
}

/* ---------- Página de erro ---------- */
.erro .envoltorio { min-height: 70vh; align-content: center; }

/* ---------- Acessibilidade e impressão ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topo, .rodape, .sumario, .cookies, .serrilha, .pular, .voltar-topo { display: none !important; }
  .feltro, .resumo { background: none !important; color: #000 !important; }
  .legal-topo h1, .resumo h2 { color: #000 !important; }
  body { background: #fff; font-size: 11pt; }
  a { text-decoration: none; }
}
