/* Páginas de texto (como funciona, sobre, privacidade, termos). Mesmo aspeto da página principal. */
:root {
  --bg:#0a0e16; --surface:#111826; --line:#222b3c; --ink:#eef2f8; --muted:#8c96aa; --accent:#56b787; --on-accent:#07261a;
  --btn2:#1b2334; --dot:rgba(255,255,255,.05); --field:#090c13;
  --font-body:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg:#eef1f6; --surface:#fff; --line:#d9dfe9; --ink:#0f1623; --muted:#5c667a; --accent:#17855a; --on-accent:#fff; --btn2:#e6eaf2; --dot:rgba(15,22,35,.07); --field:#f3f5f9; color-scheme: light; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 16px 16px;
  font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
a { color: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.logo svg { width: 26px; height: 26px; }
.btn { font: inherit; font-size: .92rem; font-weight: 600; min-height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
@media (max-width: 600px) { article { padding: 18px 16px; } }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 18px; }
h2 { font-size: 1.1rem; margin: 26px 0 6px; }
h3 { font-size: .95rem; margin: 16px 0 4px; }
p, ul, ol { margin: 8px 0; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; background: var(--field); margin: 14px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
td.n, th.n { text-align: right; font-family: var(--font-num); white-space: nowrap; }
.updated { color: var(--muted); font-size: .85rem; }
footer { max-width: 760px; margin: 0 auto; padding: 0 16px 36px; color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* talão de exemplo (como funciona) */
table.talao { width: auto; min-width: min(100%, 340px); border: 1.5px dashed var(--muted); border-collapse: separate; border-radius: 12px; padding: 6px 14px; }
table.talao table.serie th, table.serie td { padding: 7px 6px; }
table.serie th.n { white-space: normal; }
table.serie th .u { text-transform: none; }
caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 6px; caption-side: top; }
table.talao th { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; color: var(--ink); border: 0; padding: 4px 0; }
table.talao td { border: 0; padding: 4px 0 4px 16px; }
table.talao .sub { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
table.talao .minus td { color: var(--accent); }
table.talao .plus td { color: #f0925a; }
table.talao .total th, table.talao .total td { border-top: 1px dashed var(--muted); padding-top: 8px; font-weight: 700; }
@media (prefers-color-scheme: light) { table.talao .plus td { color: #b4531a; } }

/* evolução do preço (páginas por concelho) */
.evol { margin: 12px 0; }
.evol svg { display: block; width: 100%; height: 140px; color: var(--ink); }
.evol .eixo { display: flex; justify-content: space-between; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.legenda .periodo { color: var(--ink); font-weight: 600; }
.legenda i { display: inline-block; width: 20px; border-top: 2.5px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.legenda i.min { border-top: 1.5px dashed var(--muted); }
details { margin: 8px 0 12px; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
table.serie th, table.serie td { padding: 7px 6px; }
table.serie th.n { white-space: normal; }
table.serie th .u { text-transform: none; }
caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 6px; }
.fonte { color: var(--muted); font-size: .88rem; margin: 10px 0; }
