:root {
  --bg: #06141C;
  --bg-card: #0A1B24;
  --bg-raised: #0F222C;
  --bg-chip: #132833;
  --navy: #0B3B55;
  --text: #E9EDF2;
  --muted: #A7B0BC;
  --dim: #6E7887;
  --link: #8A94A3;
  --blue: #85B3D3;
  --green: #3DDC97;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .07);
  --line-3: rgba(255, 255, 255, .14);
  --light-bg: #F2F3F0;
  --light-text: #4B5563;
  --light-dim: #6B7280;
  --light-line: #D6D8D3;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@keyframes scan { 0% { top: 18%; } 50% { top: 74%; } 100% { top: 18%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section--top-line { border-top: 1px solid var(--line); }
.section--light { background: var(--light-bg); color: var(--bg); }

.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.section--light .eyebrow { color: var(--light-dim); }
.h2 {
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; font-weight: 600; line-height: 1.05;
  margin: 16px 0 0; max-width: 760px; text-wrap: balance;
}
.lead { font-size: 17px; color: var(--muted); margin: 18px 0 0; line-height: 1.55; }
.mono { font-family: var(--mono); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot--pulse { animation: pulse 1.6s infinite; }

/* Botões */
.btn {
  display: inline-block; border: 0; cursor: pointer; font-weight: 500; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; white-space: nowrap; line-height: 1.2;
}
.btn--green { color: var(--bg); background: var(--green); }
.btn--green:hover { color: var(--bg); background: #fff; }
.btn--white { color: var(--bg); background: #fff; }
.btn--white:hover { color: var(--bg); background: var(--green); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-3); }
.btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--sm { font-size: 14px; padding: 12px 18px; }
.btn--xs { font-size: 14px; padding: 9px 16px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 20, 28, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.header__right { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.nav { display: flex; gap: 28px; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: #fff; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo__word { font-size: 21px; font-weight: 700; letter-spacing: -.04em; color: #fff; line-height: 1; }
@media (max-width: 560px) {
  .header .nav { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 78% 35%, rgba(133, 179, 211, .22), transparent 70%),
              radial-gradient(40% 40% at 10% 90%, rgba(61, 220, 151, .08), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero__inner {
  position: relative; padding-top: 88px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--green);
  border: 1px solid rgba(61, 220, 151, .3); padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 6.2vw, 80px); line-height: .98; letter-spacing: -.045em; font-weight: 600;
  margin: 24px 0 0; text-wrap: balance;
}
.hero__sub { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 540px; margin: 28px 0 0; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.demo {
  background: linear-gradient(180deg, #0F222C, #0A1B24); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px; padding: 20px; box-shadow: 0 40px 120px -30px rgba(133, 179, 211, .45);
}
.demo__top {
  display: flex; justify-content: space-between; align-items: center; font-family: var(--mono);
  font-size: 12px; color: var(--dim); padding: 4px 6px 16px;
}
.demo__live { display: flex; align-items: center; gap: 6px; }
.demo__live .dot { animation: pulse 1.2s infinite; }
.demo__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #132833 0 10px, #0E1F29 10px 20px);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot--doc img { object-position: center 30%; }
.shot--selfie img { object-position: center 38%; }
.shot__frame { position: absolute; inset: 10px; border-radius: 10px; border: 1.5px solid rgba(61, 220, 151, .7); }
.shot__tag {
  position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; padding: 3px 7px;
  border-radius: 6px; background: rgba(10, 13, 18, .7); color: #C3CAD4;
}
.shot__oval {
  position: absolute; left: 16%; right: 16%; top: 12%; height: 62%; border-radius: 50%;
  border: 2.5px solid var(--blue); box-shadow: 0 0 0 999px rgba(5, 7, 10, .45); transition: border-color .3s;
}
.shot__scan {
  position: absolute; left: 20%; right: 20%; height: 2px; background: var(--blue);
  box-shadow: 0 0 18px 4px var(--blue); animation: scan 2.4s ease-in-out infinite; transition: opacity .3s;
}
.shot__msgbar { position: absolute; left: 8px; right: 8px; bottom: 12px; display: flex; justify-content: center; }
.shot__msg {
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; text-align: center;
  background: rgba(255, 255, 255, .14); color: #fff; transition: background .3s;
}
.demo[data-step="captured"] .shot__oval { border-color: var(--green); }
.demo[data-step="captured"] .shot__scan,
.demo[data-step="done"] .shot__scan { opacity: 0; }
.demo[data-step="captured"] .shot__msg,
.demo[data-step="done"] .shot__msg { background: var(--green); color: var(--bg); }
.demo[data-step="done"] .shot__oval { border-color: var(--green); }

.json {
  margin-top: 14px; border-radius: 14px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--muted);
}
.json__row { padding-left: 2ch; }
.json__row--flex { display: flex; gap: 1ch; align-items: center; flex-wrap: wrap; }
.json__v { color: #fff; }
.json__outcome {
  padding: 1px 8px; border-radius: 6px; font-weight: 500; transition: background .3s;
  background: rgba(255, 255, 255, .06); color: var(--dim);
}
.demo[data-step="done"] .json__outcome { background: var(--green); color: var(--bg); }

/* Prova social */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__inner { padding-top: 64px; padding-bottom: 64px; display: grid; gap: 40px; }
.proof__title { font-size: 15px; color: var(--muted); }
.proof__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.stat__n { font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat__l { font-size: 14px; color: var(--dim); margin-top: 10px; }

/* Como funciona */
.cards-2 { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; }
.card--accent { border-color: rgba(133, 179, 211, .5); }
.card__kicker { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.card--accent .card__kicker { color: var(--green); }
.card__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 14px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 10px 0 0; }

.flow-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.seq { background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px 20px; overflow-x: auto; }
.seq__grid { position: relative; min-width: 460px; display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 4px; }
.seq__life { position: absolute; top: 44px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .1); }
.seq__actor { grid-row: 1; justify-self: center; padding: 9px 14px; border-radius: 10px; background: var(--bg-chip); font-size: 13px; font-weight: 500; }
.seq__actor--us { background: var(--navy); color: #fff; }
.seq__msg { padding: 10px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.seq__label { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; }
.seq__label--muted { color: var(--muted); }
.seq__arrow { display: flex; align-items: center; }
.seq__line { flex: 1; height: 1.5px; background: var(--green); }
.seq__head-r { width: 0; height: 0; border-left: 7px solid var(--green); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.seq__head-l { width: 0; height: 0; border-right: 7px solid var(--green); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.seq__arrow--gray .seq__line { background: #56606E; }
.seq__arrow--gray .seq__head-l { border-right-color: #56606E; }
.seq__arrow--blue .seq__line { background: var(--blue); }
.seq__arrow--blue .seq__head-l { border-right-color: var(--blue); }
.seq__self {
  justify-self: center; margin: 10px 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(61, 220, 151, .4);
  background: var(--bg); display: flex; gap: 8px; align-items: center; font-size: 13px;
}
.num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--bg); font-size: 11px;
  font-weight: 600; display: grid; place-items: center; flex: none;
}

.steps { background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--dim); grid-row: span 2; }
.step__t { font-size: 15px; font-weight: 600; }
.step__d { font-size: 14px; color: var(--muted); line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; }
.fact__t { font-size: 14px; font-weight: 600; }
.fact__d { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* API */
.api-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.lcard {
  background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  min-height: 260px; transition: box-shadow .2s;
}
.lcard:hover { box-shadow: 0 20px 50px -20px rgba(10, 13, 18, .25); }
.lcard__kicker { font-family: var(--mono); font-size: 12px; color: var(--navy); }
.lcard__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.lcard p { font-size: 15px; line-height: 1.5; color: var(--light-text); margin: 0; }
.more-title { margin-top: 56px; font-size: 15px; font-weight: 600; }
.more { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); border-top: 1px solid var(--light-line); }
.more__item { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--light-line); }
.more__t { font-size: 16px; font-weight: 600; }
.more__item p { font-size: 14px; line-height: 1.5; color: var(--light-text); margin: 6px 0 0; }

/* SDKs */
.sdk-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 260px; aspect-ratio: 9 / 19; border-radius: 42px; background: #030B10; border: 1px solid rgba(255, 255, 255, .12); padding: 10px; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #0C1C25; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: #030B10; }
.phone__title { position: absolute; top: 64px; left: 18px; right: 18px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; text-wrap: balance; }
.phone__doc {
  position: absolute; left: 14%; right: 14%; top: 25%; aspect-ratio: .72; border-radius: 12px; overflow: hidden;
  border: 2.5px solid var(--green); box-shadow: 0 0 0 6px rgba(61, 220, 151, .15);
}
.phone__doc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__hint { position: absolute; left: 16px; right: 16px; bottom: 28px; display: flex; justify-content: center; }
.phone__hint span { padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .12); color: #fff; text-align: center; }
.features { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature__n {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-raised); border: 1px solid rgba(255, 255, 255, .08);
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--green);
}
.feature__t { font-size: 15px; font-weight: 600; }
.feature__d { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* Segurança */
.threats { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.threat { border-radius: 22px; padding: 40px; }
.threat--blue { background: linear-gradient(160deg, rgba(133, 179, 211, .22), #0A1B24 60%); border: 1px solid rgba(133, 179, 211, .35); }
.threat--green { background: linear-gradient(160deg, rgba(61, 220, 151, .14), #0A1B24 60%); border: 1px solid rgba(61, 220, 151, .3); }
.threat__n { font-family: var(--mono); font-size: 12px; }
.threat--blue .threat__n { color: var(--blue); }
.threat--green .threat__n { color: var(--green); }
.threat__t { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-top: 20px; }
.threat p { font-size: 16px; line-height: 1.55; color: #C3CAD4; margin: 12px 0 0; }
.guards { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.guard { background: var(--bg-card); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; }
.guard__n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.guard__t { font-size: 17px; font-weight: 600; margin-top: 12px; }
.guard p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }

/* Desenvolvedores */
.dev-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px; align-items: start; }
.code { background: var(--bg-card); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; overflow: hidden; min-width: 0; }
.code__tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.code__tab {
  font-family: var(--mono); font-size: 12px; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 8px;
  background: transparent; color: var(--link);
}
.code__tab[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
.code__panel { padding: 26px 28px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--muted); overflow-x: auto; white-space: nowrap; }
.code__panel[hidden] { display: none; }
.c-cmd { color: var(--green); }
.c-str { color: var(--blue); }
.c-num { color: #fff; }
.c-badge { padding: 1px 8px; border-radius: 6px; background: var(--green); color: var(--bg); font-weight: 500; }
.i2 { padding-left: 2ch; }
.i4 { padding-left: 4ch; }
.devlist { display: grid; gap: 18px; }
.devitem { display: flex; gap: 12px; align-items: flex-start; }
.devitem__dot { flex: none; margin-top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 220, 151, .15); display: grid; place-items: center; }
.devitem__text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.devitem__text strong { color: #fff; font-weight: 600; }
.btn-row { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* Casos de uso */
.cases { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.lcard--case { gap: 12px; min-height: 300px; }
.lcard--case .lcard__kicker { color: var(--light-dim); }
.tags { margin-top: auto; padding-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #EEF0F4; color: var(--navy); }
@media (max-width: 560px) {
  .lcard, .lcard--case { min-height: 0; }
  .section { padding-top: 80px; padding-bottom: 80px; }
}

/* CTA */
.cta { padding: 28px; }
.cta__box {
  max-width: 1240px; margin: 0 auto; border-radius: 28px; padding: 72px 48px; background: var(--navy);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center;
}
.cta__ring { position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.cta__copy, .cta__form { position: relative; }
.cta h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.04em; font-weight: 600; line-height: 1; margin: 0; color: #fff; text-wrap: balance; }
.cta__copy p { font-size: 18px; line-height: 1.5; color: #fff; margin: 20px 0 0; max-width: 460px; }
@media (max-width: 560px) {
  .cta { padding: 12px; }
  .cta__box { padding: 40px 20px; }
}

/* Formulário */
.form-card { background: var(--bg); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 28px; color: var(--text); width: 100%; }
@media (max-width: 560px) { .form-card { padding: 20px; } }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.input {
  font-family: inherit; font-size: 15px; color: #fff; background: var(--bg-raised); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; padding: 12px 14px; outline: none; width: 100%;
}
.input:focus { border-color: var(--blue); }
.input[aria-invalid="true"] { border-color: #E57373; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select.input option { background: var(--bg-raised); color: #fff; }
.chips-label { font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  font-size: 13px; cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-3);
  background: transparent; color: var(--muted);
}
.chip[aria-pressed="true"] { background: rgba(133, 179, 211, .18); border-color: var(--blue); color: #fff; }
.form__error { font-size: 13px; color: #F2A7A7; }
.form__error:empty { display: none; }
.form__submit { margin-top: 6px; border: 0; }
.form__submit:disabled { opacity: .7; cursor: default; }
.form__note { font-size: 12px; color: var(--dim); line-height: 1.5; }
.form__note a { color: var(--muted); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.sent { display: grid; gap: 14px; padding: 24px 4px; justify-items: start; }
.sent[hidden] { display: none; }
.sent__icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(61, 220, 151, .15); display: grid; place-items: center; }
.sent__icon span { width: 14px; height: 14px; border-radius: 50%; background: var(--green); }
.sent__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.sent p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Rodapé */
.footer { padding-top: 48px; padding-bottom: 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer__col { display: grid; gap: 10px; font-size: 14px; align-content: start; }
.footer__col a { color: var(--link); }
.footer__col a:hover { color: #fff; }
.footer__head { color: #fff; font-weight: 500; margin-bottom: 4px; }
.footer__label { color: var(--dim); }
.footer__label + a { margin-top: -6px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.logo--footer .logo__word { font-size: 19.5px; }

/* Página legal (Termos e Privacidade) */
.legal-hero { border-bottom: 1px solid var(--line); }
.legal-hero__inner { padding-top: 72px; padding-bottom: 56px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; font-weight: 600; line-height: 1.02; margin: 16px 0 0; max-width: 820px; text-wrap: balance; }
.legal-hero__sub { font-size: 17px; color: var(--muted); margin: 18px 0 0; }
.legal-meta { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px 32px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.legal-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.legal-meta dd { margin: 0; }
.legal-meta a { color: var(--text); }

.legal { background: var(--light-bg); color: var(--bg); }
.legal__inner { padding-top: 64px; padding-bottom: 112px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .legal__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 80px; } }

.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 13.5px; line-height: 1.4; }
@media (max-width: 900px) { .toc { position: static; max-height: none; background: #fff; border-radius: 16px; padding: 20px; } }
.toc__part { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--light-dim); margin: 0 0 8px; }
.toc__part + ol + .toc__part, .toc ol + .toc__part { margin-top: 24px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 4px 0; color: var(--light-text); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: #9AA1AC; padding-top: 2px; flex: none; width: 18px; }
.toc a:hover { color: var(--bg); }

.doc { max-width: 760px; font-size: 16px; line-height: 1.7; color: #1F2933; }
.doc__part { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; padding-top: 8px; }
.doc__part ~ .doc__part { margin-top: 88px; }
.doc__part { scroll-margin-top: 88px; }
.doc .doc__part-title { border: 0; padding: 0; margin-top: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; font-weight: 600; line-height: 1.1; color: var(--bg); margin: 0 0 8px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; line-height: 1.25; color: var(--bg); margin: 48px 0 8px; padding-top: 24px; border-top: 1px solid var(--light-line); scroll-margin-top: 88px; }
.doc h3 { font-size: 17px; font-weight: 600; color: var(--bg); margin: 28px 0 4px; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--bg); font-weight: 600; }
.doc a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--bg); }
.table-wrap { overflow-x: auto; margin: 16px 0; background: #fff; border-radius: 14px; border: 1px solid var(--light-line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #E6E8E3; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--light-dim); background: #FAFAF8; }
.doc td:first-child { font-weight: 600; color: var(--bg); }
.doc__end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--light-line); font-size: 14px; color: var(--light-text); }

@media print {
  .header, .toc, .footer { display: none; }
  body, .legal-hero { background: #fff; color: #000; }
  .legal-hero h1, .legal-meta, .legal-meta a { color: #000; }
  .legal__inner { display: block; padding: 0; }
}
