:root {
  color-scheme: light;
  --ink: #10243e;
  --muted: #52647a;
  --navy: #082759;
  --blue: #1769c2;
  --blue-soft: #eaf3ff;
  --green: #08765a;
  --green-soft: #e7f8f1;
  --gold: #f4b942;
  --line: #dce4ee;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --danger: #a52a36;
  --shadow: 0 18px 50px rgba(8, 39, 89, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 105, 194, .12), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0, var(--wash) 55%, #fff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--blue); }

button, input, select { font: inherit; }

button, .button {
  align-items: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: .5rem;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

button:hover, .button:hover { transform: translateY(-1px); }
button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(23, 105, 194, .26);
  outline-offset: 2px;
}

button:disabled { cursor: wait; opacity: .65; transform: none; }

.primary { background: var(--navy); box-shadow: 0 8px 20px rgba(8, 39, 89, .18); color: white; }
.secondary { background: var(--blue-soft); color: var(--navy); }
.success { background: var(--green); color: white; }
.outline { background: white; border: 1px solid var(--line); color: var(--navy); }
.danger-link { background: transparent; color: var(--danger); min-height: 38px; padding: .35rem; }

.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(220,228,238,.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.header-inner, main, .footer-inner { margin: 0 auto; max-width: 1080px; padding-left: 24px; padding-right: 24px; }
.header-inner { align-items: center; display: flex; justify-content: space-between; min-height: 72px; }
.brand { color: var(--navy); font-size: 1.15rem; font-weight: 850; letter-spacing: -.02em; text-decoration: none; }
.brand span { color: var(--blue); }
.official-note { color: var(--muted); font-size: .82rem; font-weight: 650; }

main { padding-bottom: 64px; }

.policy-page { max-width: 860px; padding-top: 42px; }
.policy-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .75rem; }
.policy-body { color: var(--muted); }
.policy-body h2 { color: var(--navy); font-size: 1.25rem; margin: 1.8rem 0 .35rem; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { margin: 0; }
.policy-body p + p { margin-top: 1rem; }

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  padding-bottom: 38px;
  padding-top: 64px;
}

.eyebrow { color: var(--blue); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { color: var(--navy); font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.055em; line-height: .98; margin: .6rem 0 1rem; max-width: 760px; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0; max-width: 760px; }

.trust-card {
  align-self: end;
  background: var(--navy);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: white;
  padding: 24px;
}
.trust-card strong { display: block; font-size: 1.05rem; margin-bottom: .7rem; }
.trust-card ul { margin: 0; padding-left: 1.2rem; }
.trust-card li + li { margin-top: .45rem; }

.steps { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 0 0 24px; }
.step { align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 10px; padding: 12px 14px; }
.step span { align-items: center; background: var(--blue-soft); border-radius: 50%; color: var(--blue); display: inline-flex; flex: 0 0 30px; font-weight: 850; height: 30px; justify-content: center; }
.step.active { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23,105,194,.08); }
.step.complete span { background: var(--green-soft); color: var(--green); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); margin-top: 20px; overflow: hidden; }
.panel-header { border-bottom: 1px solid var(--line); padding: 24px 26px 18px; }
.panel-header h2 { color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; margin: 0 0 .35rem; }
.panel-header p { color: var(--muted); margin: 0; }
.panel-body { padding: 26px; }

.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { color: var(--ink); font-size: .9rem; font-weight: 750; }
.field small { color: var(--muted); }
input, select {
  background: white;
  border: 1px solid #bbc8d7;
  border-radius: 10px;
  color: var(--ink);
  min-height: 48px;
  padding: .72rem .8rem;
  width: 100%;
}
.address-grid { display: grid; gap: 12px; grid-template-columns: 2fr 1fr; }
.city-grid { display: grid; gap: 12px; grid-template-columns: 2fr .65fr 1fr; }

.consents { background: var(--wash); border-radius: 14px; display: grid; gap: 14px; margin-top: 22px; padding: 18px; }
.check { align-items: flex-start; display: grid; gap: 10px; grid-template-columns: 20px 1fr; }
.check input { margin: .2rem 0 0; min-height: auto; width: 18px; }
.check label { font-size: .9rem; }
.privacy { border-left: 4px solid var(--green); color: var(--muted); font-size: .9rem; margin: 22px 0; padding: 2px 0 2px 14px; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }

.choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 20px; }
.choice { align-items: flex-start; background: var(--wash); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; padding: 20px; }
.choice h3 { color: var(--navy); margin: 0 0 .4rem; }
.choice p { color: var(--muted); flex: 1; margin: 0 0 1rem; }
.choice .button, .choice button { width: 100%; }

.callout { background: var(--green-soft); border: 1px solid #b9e5d5; border-radius: 16px; color: #075642; padding: 18px; }
.warning { background: #fff8e8; border-color: #efd28b; color: #654814; }
.callout h3 { margin: 0 0 .35rem; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.status { border-radius: 10px; margin-bottom: 16px; padding: 12px 14px; }
.status.error { background: #fff0f1; color: #84222d; }
.status.info { background: var(--blue-soft); color: var(--navy); }
.hidden { display: none !important; }

.site-footer { background: white; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; gap: 20px; justify-content: space-between; padding-bottom: 30px; padding-top: 30px; }
.footer-inner p { margin: 0; max-width: 720px; }

@media (max-width: 760px) {
  .hero, .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .address-grid, .city-grid { grid-template-columns: 1fr; }
  .official-note { display: none; }
  .footer-inner { flex-direction: column; }
  .panel-header, .panel-body { padding-left: 20px; padding-right: 20px; }
}
