/* LicitaMatch — páginas legais (termos e privacidade)
   Mesmos tokens da landing; leitura longa: uma coluna de texto e índice fixo ao lado. */
:root {
  --navy: #000d3a;
  --blue: #1243f0;
  --sky: #3ba4f6;
  --paper: #f3f6fc;
  --white: #ffffff;
  --slate: #4a5578;
  --line: #d9e0ef;

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.0625rem/1.7 var(--f-body); }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.top { border-bottom: 1px solid var(--line); background: var(--white); }
.top__inner { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__brand img { display: block; width: 150px; height: auto; }
.top__nav { display: flex; gap: 20px; font-size: .95rem; }
.top__nav a { color: var(--slate); text-decoration: none; }
.top__nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.top__nav a:hover { color: var(--blue); }

.head { background: var(--paper); border-bottom: 1px solid var(--line); }
.head__inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px 40px; }
.head h1 { font: 800 clamp(2rem, 1.4rem + 2.4vw, 3rem)/1.05 var(--f-display); letter-spacing: -.03em; margin: 0 0 12px; }
.head p { margin: 0; color: var(--slate); }

/* Resumo em linguagem simples: o único bloco com cor, porque é o que a maioria vai ler */
.resumo { margin-top: 28px; max-width: 70ch; background: var(--navy); color: #dbe3fb; border-radius: 14px; padding: 22px 26px; }
.resumo h2 { font: 650 1.1rem/1.3 var(--f-display); color: var(--white); margin: 0 0 10px; }
.resumo ul { margin: 0; padding-left: 1.1em; }
.resumo li + li { margin-top: 6px; }
.resumo strong { color: var(--white); font-weight: 600; }

.doc { max-width: 1120px; margin: 0 auto; padding: 48px 24px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.indice { position: sticky; top: 24px; font-size: .92rem; }
.indice h2 { font: 600 .95rem/1.3 var(--f-body); color: var(--slate); margin: 0 0 10px; }
.indice ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.indice a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; line-height: 1.35; }
.indice a:hover { color: var(--navy); border-left-color: var(--blue); }

.texto { max-width: 70ch; }
.texto section { scroll-margin-top: 24px; }
.texto section + section { margin-top: 44px; }
.texto h2 { font: 650 1.45rem/1.25 var(--f-display); letter-spacing: -.015em; margin: 0 0 14px; }
.texto h2 span { color: var(--blue); margin-right: .35em; }
.texto h3 { font: 600 1.05rem/1.4 var(--f-body); margin: 24px 0 6px; }
.texto p, .texto ul { margin: 0 0 14px; }
.texto ul { padding-left: 1.2em; }
.texto li + li { margin-top: 6px; }

.tabela { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .95rem; }
.tabela th, .tabela td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.tabela th { font-weight: 600; color: var(--slate); }

.rodape { border-top: 1px solid var(--line); background: var(--paper); font-size: .92rem; color: var(--slate); }
.rodape__inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .indice { position: static; }
  .head__inner { padding: 40px 16px 32px; }
  .top__inner, .doc, .rodape__inner { padding-left: 16px; padding-right: 16px; }
  .top__brand img { width: 120px; }
  .top__nav { gap: 14px; font-size: .88rem; white-space: nowrap; }
  .tabela, .tabela tbody, .tabela tr, .tabela th, .tabela td { display: block; }
  .tabela thead { display: none; }
  .tabela tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tabela td { border: 0; padding: 2px 0; }
  .tabela td:first-child { font-weight: 600; }
}

@media print {
  .top__nav, .indice, .skip { display: none; }
  .doc { display: block; }
  .resumo { background: none; color: var(--navy); border: 1px solid var(--line); }
  .resumo h2, .resumo strong { color: var(--navy); }
}
