/* AXISERP — folha de estilo das páginas de conteúdo (legais e erro).
   Mesmos tokens da landing, num arquivo próprio e cacheável: as páginas
   legais não precisam dos 60KB de CSS da home. */

:root {
  --bg: #faf9f8;
  --surface: #fff;
  --ink: #171412;
  --ink-2: #6b625e;
  --ink-3: #766d68;
  --border: #e4e0de;
  --hairline: #ebe8e6;
  --muted: #f3f1f0;
  --red: #c3161c;
  --radius: .4rem;
  --font-sans: 'DM Sans', 'DM Sans Fallback', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;
}

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 25%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 1000;
  background: var(--ink); color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

/* ---------- Header ---------- */
.nav {
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 249, 248, .9);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; color: var(--ink); }
.brand img { display: block; }
.brand .erp { position: relative; top: 0; }
.nav-back { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.nav-back:hover { color: var(--ink); }

/* ---------- Conteúdo ---------- */
main { padding: 56px 0 72px; }

.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 12px;
}

.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 8px; }

.updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

h2 {
  font-size: 21px;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 44px 0 12px;
  scroll-margin-top: 90px;
}

h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }

p, li { color: var(--ink-2); }
p { margin: 0 0 14px; }

strong { color: var(--ink); font-weight: 500; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }

a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: #a61217; }

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 24px;
}
.box p:last-child { margin-bottom: 0; }

.toc { background: var(--muted); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 40px; }
.toc h2 { font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-family: var(--font-mono); font-weight: 500; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 24px; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-weight: 500; color: var(--ink); background: var(--muted); font-size: 13px; }
td { color: var(--ink-2); }

/* ---------- Rodapé ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot-inner address { font-style: normal; }
.legal { display: flex; gap: 18px; }
.legal a { color: var(--ink-3); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Página de erro ---------- */
.erro { text-align: center; padding: 96px 0 120px; }
.erro .code { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: .1em; margin-bottom: 14px; }
.erro p { max-width: 460px; margin-left: auto; margin-right: auto; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #a61217; color: #fff; }
.btn-outline { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

@media (pointer: coarse) {
  .legal a, .nav-back { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }
