:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --text: #0a1b2a;
  --text-muted: #55697a;
  --border: rgba(10, 27, 42, 0.10);
  --accent: #14b0a5;
  --accent-2: #17518e;
  --shadow: 0 20px 40px -24px rgba(10, 27, 42, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081119;
    --surface: #0e1d2b;
    --text: #e7eef2;
    --text-muted: #9aacb8;
    --border: rgba(231, 238, 242, 0.12);
    --accent: #2fd6c8;
    --accent-2: #5b93d1;
    --shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #081119;
  --surface: #0e1d2b;
  --text: #e7eef2;
  --text-muted: #9aacb8;
  --border: rgba(231, 238, 242, 0.12);
  --accent: #2fd6c8;
  --accent-2: #5b93d1;
  --shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --text: #0a1b2a;
  --text-muted: #55697a;
  --border: rgba(10, 27, 42, 0.10);
  --accent: #14b0a5;
  --accent-2: #17518e;
  --shadow: 0 20px 40px -24px rgba(10, 27, 42, 0.25);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

header.site {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header.site a.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

header.site img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

header.site span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  padding: clamp(3rem, 8vw, 6rem) 1rem clamp(3.5rem, 8vw, 5rem);
  animation: rise 0.7s ease-out both;
}

.hero .mark {
  width: clamp(112px, 16vw, 156px);
  height: clamp(112px, 16vw, 156px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  place-items: center;
  animation: rise 0.7s ease-out both;
}

.hero .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  max-width: 16ch;
  animation: rise 0.7s ease-out 0.08s both;
}

.hero p {
  max-width: 42ch;
  font-size: 1.15rem;
  color: var(--text-muted);
  animation: rise 0.7s ease-out 0.16s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero .mark, .hero h1, .hero p { animation: none; }
}

section {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
}

.eyebrow {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 62ch;
}

.about h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.about p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.card .label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.card .value {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.card a.mailto {
  color: var(--accent-2);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .card a.mailto { color: var(--accent); }
}
:root[data-theme="dark"] .card a.mailto { color: var(--accent); }

.card a.mailto:hover,
.card a.mailto:focus-visible {
  text-decoration-color: currentColor;
}

.card address {
  font-style: normal;
  color: var(--text);
}

.card address span {
  display: block;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

footer a:hover, footer a:focus-visible {
  text-decoration-color: currentColor;
}

/* ---- Legal document pages (Privacidade, Termos) ---- */

.legal-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 0;
}

.legal-header a.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.legal-header a.back:hover, .legal-header a.back:focus-visible {
  color: var(--accent-2);
}

.legal-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
}

.legal-header .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.legal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
}

.toc {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem;
  background: var(--surface);
}

.toc .label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  display: block;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  counter-reset: toc;
}

.toc a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
}

.toc a:hover, .toc a:focus-visible {
  color: var(--accent-2);
}

.legal-body {
  max-width: 68ch;
}

.legal-body section {
  border-top: none;
  padding: 0 0 2.5rem;
  scroll-margin-top: 1.5rem;
}

.legal-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.4rem 0 0.6rem;
}

.legal-body p {
  color: var(--text-muted);
  margin: 0 0 0.9rem;
}

.legal-body ul {
  color: var(--text-muted);
  padding-left: 1.2rem;
  margin: 0 0 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.legal-body strong {
  color: var(--text);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.1rem;
}

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