/* Inde — páginas institucionais e legais */

:root {
  --bg: #0A0A0E;
  --bg-card: #14141C;
  --fg: #F4F1EB;
  --fg-dim: #C7C3BA;
  --muted: #8B8987;
  --muted-soft: #5F5D5A;
  --border: rgba(244, 241, 235, 0.08);
  --border-strong: rgba(244, 241, 235, 0.16);
  --brand-grad: linear-gradient(90deg, #3DE598 0%, #3DC4CF 18%, #4DA8FF 40%, #6B78FF 65%, #9D6BFF 100%);

  --sans: 'Geist', ui-sans-serif, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 18px; width: auto; display: block; }
.brand .product {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
}

/* Main */
main { flex: 1; padding: 72px 0 96px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 40px; }

.grad-bar { height: 3px; width: 72px; background: var(--brand-grad); border-radius: 3px; margin: 0 0 40px; }

/* Long-form document content */
.doc > p:first-child { color: var(--fg); font-size: 1.06rem; }
.doc h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.doc h3 { font-size: 1.05rem; font-weight: 600; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--fg-dim); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--fg); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.94rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--fg); font-weight: 600; }

/* Index: list of documents */
.lead { color: var(--fg-dim); font-size: 1.1rem; margin: 0 0 40px; max-width: 52ch; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s;
}
.links a:hover { border-color: var(--border-strong); }
.links span { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.site-footer nav a { color: var(--fg-dim); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--fg); }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer p a { text-decoration: none; }
.site-footer p a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  main { padding: 48px 0 72px; }
  .brand img { height: 15px; }
  .links span { display: none; }
}
