/* Páginas legais (termos, privacidade, reembolso, segurança)
   Mesma identidade da página inicial: papel, tinta verde-petróleo, Fustat,
   cards brancos arredondados, pílula verde-limão e rodapé verde-petróleo. */
@import url('https://fonts.googleapis.com/css2?family=Fustat:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --paper: #fbf9f4;
  --ink: #1f4647;
  --ink-deep: #123435;
  --text: #2f4f4d;
  --muted: #4e6b68;
  --line: rgba(31, 70, 71, 0.1);
  --lime: #9eea6c;
  --lime-hover: #8ee257;
  --lime-ink: #0b3824;
  --green: #15803d;
  --mint: #e4f9ee;
  --on-dark: #c0ded6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.75 'Manrope', system-ui, sans-serif;
}

a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cabeçalho em cápsula, como a navegação da home */
header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  height: 68px;
  margin: 16px auto 0;
  padding: 0 12px 0 24px;
  border: 1px solid rgba(31, 70, 71, 0.08);
  border-radius: 9999px;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 6px 24px -4px rgba(31, 70, 71, 0.06),
    0 1px 4px rgba(31, 70, 71, 0.03);
}

header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

header .brand img {
  display: block;
  width: auto;
  height: 34px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

header nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  color: var(--ink);
  font: 600 14px/1 'Manrope', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

header nav a:hover {
  background: rgba(31, 70, 71, 0.05);
}

header nav a.cta {
  padding: 0 22px;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 4px 14px rgba(158, 234, 108, 0.32);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

header nav a.cta:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(158, 234, 108, 0.42);
}

/* Conteúdo */
main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font: 700 15.5px/1.4 'Fustat', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--ink);
  font: 700 clamp(36px, 5vw, 56px)/1.05 'Fustat', sans-serif;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 700 21px/1.35 'Fustat', sans-serif;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 680px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.date {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  margin-top: 40px;
}

.toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 18px -2px rgba(31, 70, 71, 0.05);
}

.toc a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  background: var(--paper);
  color: var(--ink);
}

section {
  margin-bottom: 16px;
  padding: 28px 30px;
  scroll-margin-top: 104px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 18px -2px rgba(31, 70, 71, 0.05);
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--ink);
}

.notice {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 24px;
  background: var(--mint);
}

.notice strong {
  color: var(--ink-deep);
}

/* Rodapé verde-petróleo, como o da home */
footer {
  width: 100%;
  padding: 36px max(24px, calc((100% - 1080px) / 2)) 40px;
  border-radius: 32px 32px 0 0;
  background: var(--ink-deep);
  color: var(--on-dark);
  font-size: 13.5px;
  line-height: 1.6;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
}

footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: var(--lime);
}

footer a:focus-visible {
  outline-color: var(--lime);
}

@media (max-width: 760px) {
  header {
    height: 60px;
    padding: 0 8px 0 18px;
  }

  header .brand img {
    height: 28px;
  }

  header nav a {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  header nav a.cta {
    padding: 0 16px;
  }

  main {
    padding: 36px 0 56px;
  }

  .intro {
    font-size: 16.5px;
  }

  .layout {
    display: block;
    margin-top: 28px;
  }

  .toc {
    position: static;
    margin-bottom: 20px;
  }

  section {
    padding: 22px;
    border-radius: 20px;
  }

  .notice {
    padding: 20px 22px;
  }

  footer {
    padding: 28px 22px 32px;
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 420px) {
  header nav a:not(.cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
