:root {
  --blue: #1d4ed8;
  --blue-600: #2563eb;
  --green-soft: #dcfce7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #fff;
  --shadow: 0 10px 40px -12px rgba(15, 23, 42, .18);
  --warn: #fef3c7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 280px);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(440px, calc(100% - 28px)); margin: 0 auto; padding: 16px 0 48px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.logo {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #2563eb, #1e3a8a);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .7);
  flex-shrink: 0;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.badge {
  background: var(--green-soft);
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}
.lang {
  display: flex;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 6px 9px;
  cursor: pointer;
  color: #64748b;
  font: inherit;
}
.lang button.active {
  background: var(--ink);
  color: #fff;
}

h1 {
  font-size: clamp(24px, 6.6vw, 30px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 8px;
}
.lead { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.lead strong { color: var(--ink); }

.card {
  background: var(--card);
  border: 2px solid #bfdbfe;
  border-radius: 22px;
  padding: 16px 15px 14px;
  box-shadow: var(--shadow);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}
.card-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 12px 0 6px;
}
.field { position: relative; }
.prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #334155;
  font-size: 15px;
  pointer-events: none;
}
input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: 500 15.5px Inter, system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
input.with-prefix { padding-left: 48px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6, var(--blue));
  color: #fff;
  font: 750 16px Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(29, 78, 216, .65);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; }

.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 11px;
  font-size: 12.5px;
  color: #64748b;
}
.legal-note a { color: #334155; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.success-box { display: none; text-align: center; padding: 18px 8px 8px; }
.success-box.show { display: block; }
.success-box h3 { font-size: 18px; margin: 8px 0 6px; }
.success-box p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.form-fields.hide { display: none; }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
  height: 46px;
  font-size: 14.5px;
}

.wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  height: 48px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1.5px solid #bbf7d0;
  color: #166534;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 18px 0 6px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 6px;
  text-align: center;
}
.stat b { display: block; font-size: 15px; font-weight: 800; }
.stat span { font-size: 11px; color: #64748b; font-weight: 600; }

.trust { margin-top: 16px; display: grid; gap: 12px; }
.trust-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
}
.icon-box {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--blue);
  display: grid; place-items: center;
}
.trust-item h3 { font-size: 14.5px; font-weight: 750; }
.trust-item p { font-size: 13px; color: var(--muted); }

footer {
  margin-top: 26px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.8;
}
footer a { color: #64748b; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 30;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Legal pages */
body.legal { background: #f8fafc; }
.legal-wrap { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 64px; }
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 28px;
  box-shadow: var(--shadow);
}
.legal-card h1 { font-size: 26px; margin: 6px 0 8px; }
.updated { font-size: 13px; color: #64748b; margin-bottom: 18px; }
.legal-card h2 {
  font-size: 17px;
  margin: 22px 0 8px;
  letter-spacing: -.02em;
}
.legal-card p, .legal-card li { font-size: 14.5px; color: #334155; margin-bottom: 8px; }
.legal-card ul { padding-left: 18px; margin-bottom: 8px; }
.fill-box {
  background: var(--warn);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin: 12px 0 18px;
}
.fill-box b { display: block; margin-bottom: 4px; }
.meta-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.meta-table th, .meta-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  vertical-align: top;
}
.meta-table th { width: 38%; color: #64748b; font-weight: 650; }

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 20px));
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  z-index: 40;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  display: none;
}
.cookie-bar.show { display: block; }
.cookie-bar a { color: #93c5fd; }
.cookie-actions { display: flex; gap: 8px; margin-top: 10px; }
.cookie-actions button {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-ok { background: #fff; color: #0f172a; }
.cookie-more { background: transparent; color: #fff; border: 1px solid #475569 !important; }

@media (min-width: 480px) {
  .wrap { width: min(460px, calc(100% - 40px)); padding-top: 24px; }
}
