:root {
  --marca: #0E9488;
  --marca-escura: #0B766C;
  --marca-clara: #D7F2EE;
  --texto: #1F2A2E;
  --texto-suave: #55656B;
  --fundo: #F7FAFA;
  --cartao: #FFFFFF;
  --borda: #E1EAEA;
  --pendente-fundo: #FFF4CC;
  --pendente-borda: #E0B000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --texto: #E6EEEE;
    --texto-suave: #A7B7BB;
    --fundo: #0F1719;
    --cartao: #172225;
    --borda: #26363A;
    --marca-clara: #12383A;
    --pendente-fundo: #3D3200;
    --pendente-borda: #C99E00;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fundo);
}

a { color: var(--marca); text-underline-offset: 2px; }
a:hover { color: var(--marca-escura); }

.topo {
  background: var(--marca);
  color: #fff;
}

.topo .conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.marca:hover { color: #fff; }

.marca img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.topo nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.topo nav a { color: #fff; text-decoration: none; font-size: 0.95rem; opacity: 0.9; }
.topo nav a:hover, .topo nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

.conteudo {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.conteudo { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.4rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.2rem 0 0.6rem; color: var(--marca); }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }

.vigencia { color: var(--texto-suave); font-size: 0.95rem; margin-top: 0; }

.aviso {
  background: var(--marca-clara);
  border-left: 4px solid var(--marca);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.aviso p { margin: 0.3rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--borda);
}

th { background: var(--marca-clara); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Tabela vira lista de cartões em telas estreitas */
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border-bottom: 1px solid var(--borda); padding: 0.4rem 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 0.3rem 0.8rem; }
  td::before {
    content: attr(data-rotulo);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto-suave);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* Informação jurídica que ainda falta preencher. Deve saltar aos olhos. */
.preencher {
  background: var(--pendente-fundo);
  outline: 2px dashed var(--pendente-borda);
  border-radius: 4px;
  padding: 0 0.3rem;
  font-weight: 600;
}

.capa {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.capa img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(14, 148, 136, 0.3);
}

.capa h1 { font-size: 2.2rem; margin-top: 1.2rem; }
.capa p { color: var(--texto-suave); font-size: 1.1rem; max-width: 34rem; margin: 0.5rem auto 0; }

.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.cartao {
  display: block;
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--texto);
  transition: border-color 0.15s, transform 0.15s;
}

.cartao:hover { border-color: var(--marca); color: var(--texto); transform: translateY(-2px); }
.cartao strong { display: block; color: var(--marca); font-size: 1.1rem; margin-bottom: 0.2rem; }
.cartao span { color: var(--texto-suave); font-size: 0.95rem; }

.rodape {
  border-top: 1px solid var(--borda);
  color: var(--texto-suave);
  font-size: 0.9rem;
  padding-top: 1.2rem;
  padding-bottom: 2rem;
}

.rodape a { color: var(--texto-suave); }
