:root {
  --accent: #c2573a;
  --accent-soft: #f3e1da;
  --olive: #6b7a4b;
  --ink: #2a2421;
  --muted: #6f6560;
  --bg: #f7f3ef;
  --card: #ffffff;
  --line: #e7ded7;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 24px;
  color: var(--ink); text-decoration: none;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-family: sans-serif;
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer;
}
.lang-switch button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Language visibility */
html[data-lang="en"] [lang="pt"] { display: none !important; }
html[data-lang="pt"] [lang="en"] { display: none !important; }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 0 0 16px;
}
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.pill {
  display: inline-block; background: rgba(107,122,75,.14); color: var(--olive);
  font-weight: 600; font-size: 14px; border-radius: 999px; padding: 6px 14px;
}
.soon { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 56px; }
.step { background: var(--card); border-radius: 16px; padding: 22px; }
.step .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Documents */
.doc { padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.box { background: var(--card); border-radius: 16px; padding: 22px 24px; margin: 20px 0; }
.box.accent { border-left: 4px solid var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-soft); }
.table-scroll { overflow-x: auto; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer.site nav a { color: var(--ink); text-decoration: none; }
footer.site nav a:hover { color: var(--accent); }
footer.site p { margin: 4px 0; }
