/* Páginas jurídicas do PayNotas. Os mesmos tons de tinta, verde e apoio da página inicial,
   fundo branco. Linguagem do padrão de design do site: rótulo mono, pílulas, alvo de toque de 44 px,
   mola só no aviso de cookies que chega e assenta. */
:root {
  --branco: #FFFFFF;
  --papel: #F7F5EF;
  --superficie: #EFEEE8;
  --tinta: #161917;
  --apoio: #656B68;
  --linha: #D9D8D2;
  --verde: #0B3B29;
  --verde-escuro: #062319;
  --verde-suave: #EFEEE8;
  --fonte: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --folga: clamp(20px, 4.5vw, 48px);
  --saida-cubica: cubic-bezier(.33, 1, .68, 1);
  --mola: linear(0, .0527, .1801, .3433, .5136, .6718, .8066, .913, .9904, 1.0416, 1.0706, 1.0825,
    1.0821, 1.0737, 1.0611, 1.0468, 1.033, 1.0208, 1.0109, 1.0034, .9982, .995, .9934, .993, 1);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --mola: cubic-bezier(.34, 1.56, .64, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scrollbar-color: #D9D8D2 transparent; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
::selection { background: var(--verde-suave); color: var(--tinta); }
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--verde-escuro); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.faixa { width: 100%; max-width: calc(1200px + 2 * var(--folga)); margin: 0 auto; padding-inline: var(--folga); }

.pular { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--tinta); color: var(--branco);
  padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.pular:focus { top: 12px; }
.pular:hover, .pular:focus { color: var(--branco); }

.rotulo { font-family: var(--fonte-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--apoio); margin: 0; }

/* Topo */
.topo { border-bottom: 1px solid var(--linha); }
.topo .faixa { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.marca { display: inline-flex; align-items: center; min-height: 44px; }
.marca img { width: 110px; height: auto; }
.topo-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--tinta); text-decoration: none; font-size: 15px; border: 1px solid var(--linha); }
.topo-link:hover { color: var(--tinta); background: var(--superficie); }

/* Grade: lista de documentos ao lado no computador, depois do texto no celular */
.grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 64px; }
@media (min-width: 1024px) {
  .grade { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-block: 56px 96px; }
}
.docs { order: 2; }
.doc { order: 1; min-width: 0; }
@media (min-width: 1024px) {
  .docs { order: 0; position: sticky; top: 24px; align-self: start; }
}
.docs ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.docs a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 12px;
  color: var(--apoio); text-decoration: none; font-size: 15px; line-height: 1.3; }
.docs a:hover { background: var(--superficie); color: var(--tinta); }
.docs a[aria-current="page"] { background: var(--verde-suave); color: var(--verde-escuro); font-weight: 600; }
@media (max-width: 1023px) {
  .docs { border-top: 1px solid var(--linha); padding-top: 32px; }
  .docs ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}

/* Documento: tabela pode ir até 860 px, texto corrido fica em umas 75 letras por linha */
.doc { max-width: 860px; }
.texto p, .texto ul, .texto h2, .texto h3, .nota, .meta, .sumario, .lista-docs p { max-width: 64ch; }
.doc h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600;
  margin: 10px 0 14px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--apoio); font-size: 15px; margin: 0 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: 999px; border: 1px solid var(--tinta); background: var(--tinta);
  color: var(--branco); font: 600 15px/1 var(--fonte); text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--saida-cubica), background-color 180ms var(--saida-cubica); }
@media (hover: hover) and (pointer: fine) { .botao:hover { transform: translateY(-1px); color: var(--branco); } }
.botao:active { transform: scale(.985); transition-duration: 90ms; }
.botao:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
.botao--contorno { background: transparent; color: var(--tinta); border-color: var(--linha); }
.botao--contorno:hover { color: var(--tinta); background: var(--superficie); }

.sumario { border: 1px solid var(--linha); border-radius: 16px; margin: 0 0 32px; }
.sumario summary { min-height: 44px; display: flex; align-items: center; padding: 0 18px; cursor: pointer;
  font-weight: 600; font-size: 15px; list-style: none; }
.sumario summary::-webkit-details-marker { display: none; }
.sumario summary::after { content: "+"; margin-left: auto; font-weight: 400; color: var(--apoio); }
.sumario[open] summary::after { content: "−"; }
.sumario ol { margin: 0; padding: 4px 18px 16px 40px; font-size: 15px; }
.sumario li { padding: 0; }
.sumario a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; line-height: 1.35; }

.texto h2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.25; letter-spacing: -.015em; font-weight: 600;
  margin: 44px 0 12px; scroll-margin-top: 24px; }
.texto h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.texto p { margin: 0 0 14px; }
.texto ul { margin: 0 0 16px; padding-left: 22px; }
.texto li { margin: 0 0 6px; }
.texto li::marker { color: var(--verde); }
.texto strong { font-weight: 600; }

/* Marcas de revisão: somem na versão final (o gerador recusa publicar com elas) */
.nota { border: 1px solid var(--linha); background: var(--superficie); border-radius: 12px;
  padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.nota .rotulo { display: block; margin-bottom: 4px; color: var(--tinta); }
.rev { display: inline-block; font-family: var(--fonte-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--apoio); border: 1px solid var(--linha); border-radius: 999px;
  padding: 1px 8px; vertical-align: 2px; white-space: nowrap; }
mark.campo { background: var(--verde-suave); color: var(--tinta); border-bottom: 1px dashed var(--verde);
  padding: 0 4px; border-radius: 4px; }

/* Tabelas: viram cartões empilhados no celular, sem rolagem lateral */
.tabela { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; line-height: 1.45; }
.tabela th, .tabela td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linha);
  overflow-wrap: anywhere; hyphens: auto; }
.tabela th { font-weight: 600; font-size: 13px; color: var(--apoio); background: var(--superficie); }
@media (max-width: 767px) {
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela tr { border: 1px solid var(--linha); border-radius: 14px; padding: 6px 0; margin-bottom: 12px; }
  .tabela td { border: 0; padding: 6px 14px; }
  .tabela td::before { content: attr(data-rotulo); display: block; font-family: var(--fonte-mono); font-size: 12px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--apoio); }
}

/* Central jurídica */
.lista-docs { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--linha); }
.lista-docs li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0;
  border-bottom: 1px solid var(--linha); }
@media (min-width: 768px) { .lista-docs li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; } }
.lista-docs h2 { font-size: 19px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.lista-docs h2 a { color: var(--tinta); text-decoration: none; }
.lista-docs h2 a:hover { color: var(--verde); text-decoration: underline; }
.lista-docs p { margin: 0; color: var(--apoio); font-size: 15px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rodapé obrigatório */
.rodape { border-top: 1px solid var(--linha); background: var(--superficie); font-size: 15px; color: var(--apoio); }
.rodape-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px 28px; }
@media (min-width: 768px) { .rodape-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; } }
.rodape-marca img { width: 96px; margin-bottom: 12px; }
.rodape-marca p { margin: 0 0 4px; }
.rodape a { color: var(--tinta); }
.rodape-marca a { display: inline-flex; align-items: center; min-height: 44px; }
.rodape-links { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0 16px; }
.rodape-links a, .rodape-links button { display: inline-flex; align-items: center; min-height: 44px;
  color: var(--tinta); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.rodape-links a:hover, .rodape-links button:hover { color: var(--verde); text-decoration: underline; }
.rodape-fim { border-top: 1px solid var(--linha); padding-block: 16px 24px; font-size: 13px; }

/* Aviso de cookies: chega com mola e assenta */
.aviso-cookies { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  margin-inline: auto; background: var(--branco); border: 1px solid var(--linha); border-radius: 22px;
  box-shadow: 0 28px 64px -18px rgba(22, 25, 23, .18); padding: 18px 20px; font-size: 15px; line-height: 1.5;
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity 600ms var(--saida-cubica), transform 600ms var(--mola); }
.aviso-cookies.visivel { opacity: 1; transform: none; }
.aviso-cookies h2 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.aviso-cookies p { margin: 0 0 14px; color: var(--apoio); }
.aviso-cookies .acoes .botao { flex: 1 1 160px; }
@media (max-width: 760px) { .aviso-cookies .acoes .botao { white-space: nowrap; padding-inline: 12px; } }
@media (min-width: 1024px) { .aviso-cookies { left: auto; right: 24px; bottom: 24px; margin: 0; } }

@media (prefers-reduced-motion: reduce) {
  .aviso-cookies { transition: none; transform: none; }
  .botao { transition: none; }
  .botao:hover, .botao:active { transform: none; }
}

@media print {
  .topo, .docs, .rodape, .aviso-cookies, .pular, .sumario, .meta .botao { display: none !important; }
}

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

/* Trilha de navegação (Início / seção / página): no alto à esquerda de toda página interna, com o Voltar ao lado */
.trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 12px; font-size: 14px; line-height: 1.3; }
.trilha ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.trilha li { display: inline-flex; align-items: center; }
.trilha li + li::before { content: "/"; margin: 0 10px; color: #D9D8D2; }
.trilha a { display: inline-flex; align-items: center; min-height: 44px; color: #656B68; text-decoration: none; text-underline-offset: 3px; }
.trilha a:hover { color: #161917; text-decoration: underline; }
.trilha [aria-current="page"] { color: #161917; font-weight: 600; }
.trilha .trilha-voltar {
  gap: 4px;
  min-height: 36px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: rgba(22, 25, 23, 0.05);
  color: #161917;
  font-weight: 600;
  transition: background-color 140ms ease;
}
.trilha .trilha-voltar:hover { background: rgba(22, 25, 23, 0.09); text-decoration: none; }
.trilha .trilha-voltar svg { width: 16px; height: 16px; transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.trilha .trilha-voltar:hover svg { transform: translateX(-2px); }
.trilha a:focus-visible { outline: 2px solid #0B3B29; outline-offset: 2px; border-radius: 8px; }
@media (pointer: coarse), (max-width: 1100px) { .trilha .trilha-voltar { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .trilha .trilha-voltar svg { transition: none; } }
