:root {
  --fundo: #fbfaf8;
  --texto: #1d1c1a;
  --suave: #5f5b55;
  --linha: #e4e0d9;
  --destaque: #b3261e;
  --cartao: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #151413;
    --texto: #ece9e4;
    --suave: #a8a39b;
    --linha: #33302c;
    --destaque: #ff8a80;
    --cartao: #1d1c1a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

.topo, main, .rodape {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.topo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--linha);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}

.marca {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--texto);
  text-decoration: none;
}

.topo nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }

a { color: var(--destaque); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }

main { padding-top: 2.5rem; padding-bottom: 3rem; }

h1, h2, h3 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.25;
  text-wrap: balance;
}

h1 { font-size: 2rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.3rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }

.data {
  color: var(--suave);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.cartao {
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.6rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cartao p:last-child, .cartao ul:last-child { margin-bottom: 0; }

.tabela { overflow-x: auto; margin: 0 0 1.2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--linha);
}

th { color: var(--suave); font-weight: 600; }

.lista-paginas { list-style: none; padding: 0; }
.lista-paginas li { margin-bottom: 0.8rem; }
.lista-paginas span { color: var(--suave); font-size: 0.92rem; }

.rodape {
  padding-top: 1.2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--linha);
  color: var(--suave);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
}
