/* Páginas internas do site LotoIA (termos, privacidade, jogo responsável). Tokens do Guia de Marca. */
:root {
  color-scheme: light;
  --loto-brand: #6C3CE1; --loto-brand-hover: #5A2DC7;
  --loto-success: #00D4AA; --loto-on-success: #0B3B32;
  --loto-alert: #F59E0B; --loto-on-alert: #1E293B;
  --loto-bg: #F8FAFC; --loto-card: #FFFFFF; --loto-border: #E2E8F0;
  --loto-text: #1E293B; --loto-text-muted: #64748B;
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--loto-bg); color: var(--loto-text); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--loto-brand); }
a:hover { color: var(--loto-brand-hover); }
:focus-visible { outline: 3px solid var(--loto-brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(248, 250, 252, .9); backdrop-filter: saturate(170%) blur(10px); -webkit-backdrop-filter: saturate(170%) blur(10px); border-bottom: 1px solid var(--loto-border); }
.topo .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--loto-text); text-decoration: none; }
.logo span { color: var(--loto-brand); }
.logo:hover { color: var(--loto-text); }
.acoes { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.voltar { font-weight: 600; text-decoration: none; color: var(--loto-text-muted); padding: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 12px; font: 600 15px/1.2 var(--font); text-decoration: none; background: var(--loto-brand); color: #FFFFFF; border: 1.5px solid var(--loto-brand); }
.btn:hover { background: var(--loto-brand-hover); color: #FFFFFF; }

.pagina { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 80px; }
.indice { display: none; }
.cabeca h1 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; text-wrap: balance; }
.cabeca .data { margin-top: 12px; font-size: 14px; color: var(--loto-text-muted); }
.cabeca .resumo { margin-top: 20px; font-size: 19px; color: var(--loto-text); max-width: 62ch; }
.rascunho { margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: #FFF7E6; border: 1px solid var(--loto-alert); font-size: 14px; color: var(--loto-text); }
mark.pendente { background: #FEF08A; color: var(--loto-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }

article { max-width: 72ch; }
article h2 { margin: 48px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
article h2:first-child { margin-top: 0; }
article h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 600; }
article p, article ul, article ol { margin: 0 0 14px; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
.destaque { padding: 18px 20px; border-radius: 16px; background: var(--loto-card); border: 1px solid var(--loto-border); margin: 18px 0; }
.destaque strong { display: block; margin-bottom: 4px; }
.ajuda { display: grid; gap: 12px; margin: 18px 0; }
.ajuda .item { padding: 18px 20px; border-radius: 16px; background: var(--loto-card); border: 1px solid var(--loto-border); }
.ajuda .item b { font-size: 18px; }
.tabela { overflow-x: auto; margin: 16px 0; border: 1px solid var(--loto-border); border-radius: 14px; background: var(--loto-card); }
.tabela table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--loto-border); vertical-align: top; }
.tabela tr:last-child > * { border-bottom: 0; }
.tabela th { font-weight: 600; background: var(--loto-bg); }

footer { background: var(--loto-card); border-top: 1px solid var(--loto-border); padding-block: 40px calc(36px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; gap: 22px; }
.links-rodape { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.links-rodape a { color: var(--loto-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.links-rodape a:hover, .links-rodape a[aria-current] { color: var(--loto-brand); }
.legal-rodape { font-size: 13px; color: var(--loto-text-muted); max-width: 82ch; margin: 0; }

@media (min-width: 960px) {
  .pagina { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-block: 72px 104px; }
  .cabeca { grid-column: 2; }
  .indice { display: block; grid-row: 1 / span 2; position: sticky; top: 100px; align-self: start; font-size: 14px; }
  .indice p { margin: 0 0 10px; font-weight: 600; color: var(--loto-text-muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
  .indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .indice a { color: var(--loto-text-muted); text-decoration: none; }
  .indice a:hover { color: var(--loto-brand); }
  article { grid-column: 2; }
  .cabeca h1 { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
