:root {
  color-scheme: light;
  --ink: #101923;
  --muted: #5b6978;
  --paper: #f5f8fb;
  --surface: #ffffff;
  --line: #d8e2ec;
  --blue: #0071c8;
  --blue-deep: #063f78;
  --yellow: #ffc43d;
  --green: #00a77e;
  --red: #e2453d;
  --radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 113, 200, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 113, 200, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a):focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(6, 63, 120, 0.24);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 15px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-80px);
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: #0b1f31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
}

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

.legal-header nav a {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 760;
}

.legal-header nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.legal-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 36%, var(--yellow) 36% 62%, var(--red) 62% 80%, var(--green) 80% 100%);
}

.legal-hero {
  color: #ffffff;
  background: var(--blue-deep);
}

.legal-hero-inner,
.legal-layout,
.legal-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-hero-inner {
  padding: clamp(66px, 9vw, 110px) 0 clamp(58px, 8vw, 92px);
}

.legal-kicker {
  width: fit-content;
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
}

.legal-hero p:not(.legal-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.6;
}

.legal-meta {
  margin-top: 28px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 820;
}

.legal-layout {
  padding: clamp(54px, 8vw, 96px) 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 28px;
  padding-top: 14px;
  border-top: 4px solid var(--blue);
  display: grid;
}

.legal-index strong {
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
}

.legal-index a {
  min-height: 42px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 720;
}

.legal-index a:hover {
  color: var(--blue-deep);
}

.legal-content {
  min-width: 0;
  background: var(--surface);
}

.legal-section {
  padding: 0 0 42px;
  scroll-margin-top: 24px;
}

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

.legal-section h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.legal-section h3 {
  margin: 28px 0 0;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  color: #435467;
  font-size: 15px;
  line-height: 1.72;
}

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

.legal-section ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding: 7px 0 7px 20px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--green);
}

.legal-callout {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--yellow);
  color: var(--ink);
  background: #fff8e7;
  font-weight: 680;
  line-height: 1.62;
}

.legal-section a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0b1f31;
}

.legal-footer-inner {
  min-height: 108px;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}

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

.legal-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 740;
}

@media (max-width: 760px) {
  .legal-header {
    padding: 10px 18px;
    display: grid;
  }

  .legal-brand span {
    max-width: 210px;
    font-size: 13px;
    line-height: 1.3;
  }

  .legal-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-header nav a {
    padding: 10px 8px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }

  .legal-hero-inner,
  .legal-layout,
  .legal-footer-inner {
    width: min(100% - 36px, 1180px);
  }

  .legal-hero-inner {
    padding: 52px 0 58px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-hero p:not(.legal-kicker) {
    font-size: 16px;
  }

  .legal-layout {
    padding: 48px 0 64px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .legal-index strong {
    grid-column: 1 / -1;
  }

  .legal-content {
    background: transparent;
  }

  .legal-footer-inner {
    display: grid;
  }
}
