:root {
  color-scheme: light;
  --navy: #002043;
  --navy-2: #07335f;
  --lime: #98ff00;
  --ink: #0c1d31;
  --muted: #53667c;
  --line: #dce4ec;
  --surface: #f5f8fb;
  --white: #fff;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --success: #176b36;
  --success-bg: #edfaef;
  --warning: #8a5100;
  --warning-bg: #fff7e7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

.legal-shell { min-height: 100vh; }

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 32, 67, .97);
}

.legal-header__inner,
.legal-footer__inner,
.legal-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.legal-brand img {
  width: 154px;
  height: auto;
  filter: brightness(0) invert(1);
}

.legal-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-link,
.language-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.legal-link {
  padding: 0 16px;
  color: #fff;
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
}

.language-link {
  min-width: 44px;
  color: rgba(255, 255, 255, .72);
}

.language-link.is-active {
  color: var(--navy);
  background: var(--lime);
}

.legal-hero {
  padding: 72px 0 64px;
  color: #fff;
  background: var(--navy);
}

.legal-hero__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 740px;
  margin: 20px 0 0;
  color: #d7e2ee;
  font-size: 18px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  color: #b9c8d8;
  font-size: 14px;
}

.legal-main { padding: 56px 0 80px; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 48px;
  align-items: start;
}

.legal-reading { max-width: 760px; }

.legal-section + .legal-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.legal-section h2,
.request-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-section h3 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
}

.legal-section p { margin: 0 0 16px; }

.legal-section ul,
.legal-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-section li + li { margin-top: 10px; }

.process-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: deletion-step;
}

.process-list li {
  position: relative;
  min-height: 52px;
  padding: 0 0 24px 64px;
  counter-increment: deletion-step;
}

.process-list li::before {
  content: counter(deletion-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--lime);
  font-weight: 800;
}

.process-list strong { display: block; color: var(--navy); }

.request-panel {
  position: sticky;
  top: 100px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 32, 67, .06);
}

.request-panel__intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.status-banner {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 14px;
}

.status-banner strong { display: block; margin-bottom: 4px; }
.status-banner p { margin: 0; }
.status-banner--success { color: var(--success); border-color: #b7e2c0; background: var(--success-bg); }
.status-banner--warning { color: var(--warning); border-color: #f0d49e; background: var(--warning-bg); }
.status-banner--danger { color: var(--danger); border-color: #f2bbb5; background: var(--danger-bg); }

.tracking-code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--navy);
  background: rgba(152, 255, 0, .36);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.validation-summary-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 4px solid var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 14px;
}

.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

.form-field + .form-field { margin-top: 18px; }

.form-field label,
.consent-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #b9c7d5;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.form-field textarea { min-height: 112px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(0, 32, 67, .12);
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field-validation-error {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.consent-field {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  cursor: pointer;
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--navy);
}

.consent-field > span {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.legal-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: var(--lime);
  font-weight: 800;
  cursor: pointer;
}

.legal-button:hover { background: #8cf000; }

.legal-button:focus-visible,
.legal-link:focus-visible,
.language-link:focus-visible,
.legal-footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.security-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.legal-callout {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--lime);
  background: #eef4f8;
}

.legal-callout p:last-child { margin-bottom: 0; }

.legal-footer {
  padding: 32px 0;
  color: #c8d5e3;
  background: var(--navy);
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.legal-footer p { margin: 0; font-size: 13px; }

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.legal-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-reading { max-width: none; }
  .request-panel { position: static; }
}

@media (max-width: 640px) {
  .legal-header__inner,
  .legal-footer__inner,
  .legal-container { width: min(100% - 32px, 1120px); }
  .legal-header__inner { min-height: 64px; }
  .legal-brand img { width: 130px; }
  .legal-link { display: none; }
  .legal-hero { padding: 48px 0 44px; }
  .legal-hero h1 { font-size: 36px; }
  .legal-hero p { font-size: 16px; }
  .legal-main { padding: 40px 0 56px; }
  .legal-section + .legal-section { margin-top: 36px; padding-top: 36px; }
  .request-panel { padding: 22px 18px; }
  .legal-footer__inner { display: block; }
  .legal-footer nav { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
