:root {
  --navy: #0b1b33;
  --navy-2: #12243f;
  --blue: #2563eb;
  --green: #16a34a;
  --green-2: #15803d;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #eef3f8;
  --card: #fff;
  --shadow: 0 14px 40px -16px rgba(11, 27, 51, .35);
}
* { 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: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.hero-bg {
  background: linear-gradient(180deg, var(--navy) 0%, #16325a 100%);
  color: #fff;
  padding: 16px 0 72px;
}
.wrap { width: min(460px, calc(100% - 28px)); margin: 0 auto; }
.legal-wrap { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 64px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  text-decoration: none;
  color: #fff;
}
body.legal .brand { color: var(--ink); }
.logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.badge {
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
body.legal .badge { background: #dbeafe; color: #1e40af; }
.lang {
  display: flex;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
}
body.legal .lang { border-color: var(--line); background: #fff; }
.lang button {
  border: 0; background: transparent;
  padding: 6px 9px; cursor: pointer;
  color: #cbd5e1; font: inherit;
}
body.legal .lang button { color: #64748b; }
.lang button.active { background: #fff; color: var(--navy); }

.pill {
  display: inline-block;
  background: #0891b2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 10px;
}
.lead { color: #cbd5e1; font-size: 15px; margin-bottom: 4px; }
.lead strong { color: #fff; }

.sheet { margin-top: -48px; padding-bottom: 48px; }
.card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.card-title {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}
.card-sub { text-align: center; font-size: 12.5px; color: #64748b; margin-bottom: 12px; font-weight: 650; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  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, select {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: 500 15px Inter, system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  outline: none;
  appearance: none;
}
input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
input.with-prefix { padding-left: 48px; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.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, #22c55e, var(--green));
  color: #fff;
  font: 750 16px Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(22, 163, 74, .65);
}
.btn:disabled { opacity: .6; }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
  height: 46px;
  font-size: 14.5px;
}
.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; }

.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;
}

.trust { margin-top: 18px; display: grid; gap: 12px; }
.trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}
.icon-box {
  width: 40px; height: 40px;
  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: 22px;
  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); }

body.legal { background: #f8fafc; }
.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; color: var(--ink); }
.updated { font-size: 13px; color: #64748b; margin-bottom: 18px; }
.legal-card h2 { font-size: 17px; margin: 22px 0 8px; }
.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: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin: 12px 0 18px;
}
.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; }
