/* Páginas legais da Guix: mesma paleta e tipografia do site principal, leitura em coluna única. */
:root {
  --bg: #eef2f1;
  --surface: #f9fbfb;
  --ink: #0d1a24;
  --muted: #52626b;
  --line: #cbd6d8;
  --accent: #3740ae;
  --accent-ink: #ffffff;
  --moss: #1f7a70;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b141c; --surface: #111e28; --ink: #e5eef1; --muted: #98abb4; --line: #23343f;
    --accent: #74d0b0; --accent-ink: #0b141c; --moss: #6fb8e0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b141c; --surface: #111e28; --ink: #e5eef1; --muted: #98abb4; --line: #23343f;
  --accent: #74d0b0; --accent-ink: #0b141c; --moss: #6fb8e0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 1080px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; }
.logo img { width: 38px; height: auto; display: block; }
.back { font-weight: 500; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5rem); align-self: start; display: grid; gap: 0.25rem; }
.legal-nav span { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--moss); margin-bottom: 0.5rem; }
.legal-nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0 0.35rem 0.8rem; border-left: 2px solid var(--line); }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .legal-nav span { width: 100%; margin: 0; }
  .legal-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; }
  .legal-nav a[aria-current="page"] { border-color: var(--accent); }
}

article { max-width: 68ch; min-width: 0; }
article h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 0.6rem; text-wrap: balance; }
.updated { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--moss); margin: 0 0 2rem; }
article h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.015em; margin: 2.6rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); text-wrap: balance; }
article h3 { font-size: 1.02rem; margin: 1.6rem 0 0.4rem; }
article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
article strong { font-weight: 600; }
article code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.4em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--moss); font-weight: 500; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 2rem; color: var(--muted); font-size: 0.9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
footer a { color: var(--muted); }
