:root {
  --navy: #003366;
  --navy-deep: #00264d;
  --steel: #3d6a99;
  --steel-light: #8fb6d9;
  --steel-pale: #e7f0f8;
  --mist: #f5f9fc;
  --ice: #fbfdff;
  --white: #ffffff;
  --ink: #102a42;
  --muted: #5c7287;
  --line: #dde7ef;
  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
::selection { background: var(--steel); color: var(--white); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 4px; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-light);
  box-shadow: 0 0 0 4px rgba(143, 182, 217, 0.12);
}
.topbar-right { color: rgba(255, 255, 255, 0.56); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 51, 102, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(0, 51, 102, 0.6);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.brand-mark::before { width: 18px; height: 4px; }
.brand-mark::after { width: 4px; height: 18px; }
.brand-mark span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-light);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.brand-text small {
  margin-top: 4px;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--steel); transform: translateY(-1px); }
.nav-cta svg { width: 13px; height: 13px; }

/* ---------- Legal hero ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 68px) 0 clamp(100px, 11vw, 136px);
  background: linear-gradient(145deg, #003366 0%, #002b57 62%, #001f3d 100%);
  color: var(--white);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 72%);
  mask-image: linear-gradient(115deg, #000, transparent 72%);
  pointer-events: none;
}
.legal-hero::after {
  content: "";
  position: absolute;
  top: -190px;
  right: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(143, 182, 217, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(143, 182, 217, 0.025), 0 0 0 104px rgba(143, 182, 217, 0.02);
  pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 36px;
  color: var(--steel-light);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--steel-light); }
.legal-hero h1 {
  margin-top: 16px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.3vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
  hyphens: auto;
}
.legal-lead {
  max-width: 600px;
  margin-top: 19px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Legal content ---------- */
.legal-main {
  padding: 0 0 clamp(64px, 8vw, 96px);
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
}
.legal-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(-96px, -8vw, -72px);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}
.legal-layout > * { min-width: 0; }
.legal-card {
  padding: clamp(28px, 4.2vw, 50px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  box-shadow: 0 30px 65px -38px rgba(0, 51, 102, 0.38);
}
.legal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-card-top span {
  min-width: 0;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* ---------- Legal prose ---------- */
.legal-prose { color: #4d667c; }
.legal-prose > h2:first-child { margin-top: 25px; }
.legal-prose h2 {
  margin: 33px 0 12px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: clamp(1.22rem, 1.7vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.legal-prose h3 {
  margin: 26px 0 9px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.legal-prose h4 {
  margin: 20px 0 8px;
  color: var(--steel);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  line-height: 1.5;
}
.legal-prose p { margin: 12px 0; font-size: 14px; line-height: 1.8; }
.legal-prose ul, .legal-prose ol { margin: 14px 0 14px 22px; padding-left: 0; color: #4d667c; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin: 7px 0; padding-left: 4px; font-size: 14px; line-height: 1.78; }
.legal-prose strong { color: var(--navy); font-weight: 700; }
.legal-prose a {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal-prose a:hover { color: var(--navy); }
.legal-prose img { max-width: 100%; height: auto; }
.legal-prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.legal-prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--steel);
  border-radius: 0 8px 8px 0;
  background: var(--ice);
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}
.legal-meta a {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 51, 102, 0.25);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-meta a:hover { color: var(--steel); border-color: var(--steel); }

.legal-side {
  position: sticky;
  top: 116px;
  padding: 27px;
  overflow: hidden;
  border-radius: 17px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 24px 50px -34px rgba(0, 51, 102, 0.6);
}
.legal-side::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 0;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(143, 182, 217, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(143, 182, 217, 0.025);
  pointer-events: none;
}
.legal-side > * { position: relative; }
.side-label {
  color: var(--steel-light);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal-side h2 {
  margin-top: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.legal-side p { margin-top: 10px; color: rgba(255, 255, 255, 0.62); font-size: 12px; line-height: 1.7; }
.legal-side address {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-style: normal;
  line-height: 1.7;
}
.side-link {
  display: block;
  margin-top: 7px;
  color: var(--white);
  font-size: 12px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.side-link:hover { color: var(--steel-light); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 18px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn svg { width: 13px; height: 13px; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--steel-pale); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: #001b33; color: rgba(255, 255, 255, 0.58); padding: 52px 0 26px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand-mark { background: var(--white); }
.footer-brand .brand-mark::before, .footer-brand .brand-mark::after { background: var(--navy); }
.footer-brand .brand-mark span { background: var(--steel); }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: var(--steel-light); }
.footer-brand p { max-width: 300px; margin-top: 17px; font-size: 12.5px; line-height: 1.7; }
.footer-col h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col a { display: block; padding: 5px 0; font-size: 12.5px; line-height: 1.5; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col address {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer-contact-label { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.38); font-size: 10px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-size: 10.5px;
}
.footer-legal { display: flex; align-items: center; gap: 20px; }
.footer-legal a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--white); }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .main-nav > a:not(.nav-cta) { font-size: 10.5px; }
}
@media (max-width: 920px) {
  .main-nav > a:not(.nav-cta) { display: none; }
  .topbar-right { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-side { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .topbar-inner { min-height: 34px; font-size: 8.5px; letter-spacing: 0.1em; }
  .nav-wrap { min-height: 72px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  .brand-text strong { font-size: 13px; }
  .brand-text small { font-size: 7.5px; letter-spacing: 0.2em; }
  .nav-cta { padding: 11px 13px; font-size: 9px; }
  .legal-hero { padding-bottom: 106px; }
  .kicker { margin-top: 28px; }
  .legal-card { padding: 24px; }
  .legal-card-top { flex-wrap: wrap; }
  .legal-prose h2 { margin-top: 28px; }
  .legal-meta { align-items: flex-start; flex-direction: column; gap: 11px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 360px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
