:root {
  --brand: #783fe4;
  --brand-light: #9061e8;
  --brand-dark: #5b2cb5;
  --ink: #2d2d3f;
  --accent: #8a88a0;
  --bg: #f5f3fb;
  --card: #ffffff;
  --text: #2d2d3f;
  --text-muted: #6b6980;
  --border: #e5e1f5;
  --success: #1e8e4f;
  --error: #c62828;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.topbar {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.logo-full {
  height: 34px;
  width: auto;
  display: block;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 1px 3px rgba(15, 37, 87, 0.06);
}

h1 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--brand);
}

p.lead {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

.cliente-box {
  background: #eef1fa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.cliente-box .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.cliente-box .row span:first-child { color: var(--text-muted); }
.cliente-box .row span:last-child { font-weight: 600; }

details.dados-consentimento {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

details.dados-consentimento summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.dados-consentimento summary::-webkit-details-marker { display: none; }

.tabela-dados {
  padding: 4px 16px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tabela-dados ul { margin: 0; padding-left: 18px; }

.lgpd-note {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.termo-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

.checkbox-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  cursor: pointer;
}

.checkbox-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

button.cta {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

button.cta:active { transform: scale(0.99); }
button.cta:disabled { background: #9aa4bd; cursor: not-allowed; }

button.cta:not(:disabled):hover { background: var(--brand-light); }

.status-box {
  display: none;
  text-align: center;
  padding: 32px 8px;
}

.status-box.active { display: block; }

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-box h2 { font-size: 17px; margin: 0 0 6px; color: var(--brand); }
.status-box p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

.icon-ok, .icon-err {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 26px; color: #fff;
}
.icon-ok { background: var(--success); }
.icon-err { background: var(--error); }

.hidden { display: none !important; }

footer.rodape {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #98a1b8;
}
