/* Páginas de texto (privacidade, termos, cookies, 404): mesmas cores e fontes do site, leitura confortável */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f2; --surface: #ffffff; --ink: #16201b; --ink-2: #3a4640; --muted: #5f6a63;
  --line: #e7e3da; --brand: #12603f; --brand-ink: #0e5134; --brand-soft: #e2efe7; --on-brand: #ffffff;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111614; --surface: #171d1a; --ink: #e9eeeb; --ink-2: #c3cdc7; --muted: #98a59e;
  --line: #26302b; --brand: #3fb07b; --brand-ink: #6fd3a3; --brand-soft: #1d3a2d; --on-brand: #08140e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

.lg-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100% - 760px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.brand b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand b span { color: var(--brand); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.langs button { border: 0; background: none; color: var(--muted); font: 600 13px/1 'DM Sans', sans-serif; padding: 7px 10px; border-radius: 99px; cursor: pointer; min-width: 38px; }
.langs button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
/* com os 5 idiomas o cabeçalho não cabe no celular: fica só o ícone da marca */
@media (max-width: 440px) { .lg-head .brand b { display: none; } .langs button { min-width: 34px; padding: 7px 8px; } }

main { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 6px; }
h2 { font-size: 19px; margin: 32px 0 8px; line-height: 1.3; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { color: var(--ink-2); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lead { font-size: 17.5px; color: var(--ink); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.box.brand { background: var(--brand-soft); border-color: transparent; }
.box.brand p, .box.brand li { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
th { background: var(--surface); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
code { font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.lg-foot { max-width: 760px; margin: 0 auto; padding: 18px 16px 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lg-foot a { color: var(--ink-2); }
.lg-foot a[aria-current="page"] { color: var(--brand-ink); font-weight: 700; text-decoration: none; }

/* 404 */
.notfound { min-height: calc(100dvh - 140px); display: grid; place-items: center; text-align: center; }
.notfound img { width: 64px; height: 64px; }
.notfound .btn { display: inline-flex; margin-top: 10px; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 12px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
