:root {
  --legal-blue: #172f6b;
  --legal-accent: #0b56cf;
  --legal-surface: #f4f8ff;
  --legal-line: #dbe5f4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--legal-surface);
  color: var(--legal-blue);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid #ffd21f; outline-offset: 4px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--legal-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.legal-main {
  min-height: 72vh;
  padding: clamp(150px, 17vw, 210px) 24px 96px;
  background:
    radial-gradient(circle at 85% 10%, rgba(27, 188, 190, .16), transparent 34%),
    radial-gradient(circle at 10% 35%, rgba(11, 86, 207, .12), transparent 30%),
    var(--legal-surface);
}
.legal-shell { width: min(900px, 100%); margin-inline: auto; }
.legal-eyebrow {
  margin: 0 0 20px;
  color: var(--legal-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal-main h1 {
  max-width: 800px;
  margin: 0 0 30px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: .96;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.legal-intro {
  max-width: 720px;
  margin: 0 0 54px;
  color: #53658d;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}
.legal-content {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 70px rgba(23, 47, 107, .09);
}
.legal-content section { padding: 34px clamp(24px, 5vw, 52px); }
.legal-content section + section { border-top: 1px solid var(--legal-line); }
.legal-content h2 { margin: 0 0 12px; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.035em; }
.legal-content p, .legal-content li { color: #53658d; font-size: 15px; line-height: 1.75; }
.legal-content p { margin: 0; }
.legal-content ul { margin: 10px 0 0; padding-left: 22px; }
.legal-content a { color: var(--legal-accent); font-weight: 700; text-underline-offset: 3px; }
.legal-note { margin-top: 28px; color: #6a7899; font-size: 13px; line-height: 1.6; }
.legal-footer { padding: 30px 24px; background: #172f6b; color: #fff; }
.legal-footer__inner { width: min(1120px, 100%); margin-inline: auto; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.legal-footer p { margin: 0; font-size: 12px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-footer a { font-size: 12px; font-weight: 700; text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.error-code { display: block; margin-bottom: 18px; color: #1bbbbe; font-size: clamp(72px, 18vw, 180px); font-weight: 900; line-height: .75; letter-spacing: -.08em; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.error-actions a { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; background: var(--legal-accent); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.error-actions a:last-child { border: 1px solid var(--legal-line); background: #fff; color: var(--legal-blue); }
.error-actions a:hover { transform: translateY(-2px); }

@media (max-width: 820px) {
  .legal-main { padding-top: 126px; padding-bottom: 64px; }
  .legal-content { border-radius: 22px; }
  .legal-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .error-actions a:hover { transform: none; }
}
