:root {
  color-scheme: dark;
  --navy: #02070d;
  --navy-soft: #0b1724;
  --ink: #f5f9ff;
  --muted: #91a3b8;
  --blue: #4f8df7;
  --blue-deep: #77aafd;
  --line: rgba(188, 211, 242, 0.18);
  --surface: #07111b;
  --white: #ffffff;
  --container: min(1120px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff;
  color: #07111b;
  font-weight: 850;
  transform: translateY(-160%);
}

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

html {
  scroll-behavior: smooth;
}

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

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 28%, rgba(79, 141, 247, 0.14), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(28, 101, 206, 0.09), transparent 26%),
    linear-gradient(180deg, #02070d 0%, #071320 48%, #02070d 100%);
}

main::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.16) 70%, transparent 100%);
  content: "";
}

.legal-hero,
.legal-layout {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 3px;
}

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

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(176, 204, 237, 0.2);
  background: rgba(2, 7, 13, 0.96);
  backdrop-filter: blur(14px);
}

.legal-brand img {
  width: 176px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.back-home {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(135, 177, 234, 0.5);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.back-home svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.legal-hero {
  background-image:
    linear-gradient(90deg, rgba(2, 7, 13, 0.98), rgba(7, 19, 31, 0.92)),
    image-set(
      url("assets/hero-om-consult-1280.avif") type("image/avif"),
      url("assets/hero-om-consult-1280.webp") type("image/webp")
    );
  background-position: left top, center 42%;
  background-size: auto, cover;
  color: var(--white);
}

.legal-hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 76px 0 70px;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: #77aafd;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d8e4f3;
  font-size: 1.05rem;
}

.legal-updated {
  display: inline-block;
  margin-top: 22px;
  color: #a9bad0;
  font-size: 0.84rem;
}

.legal-layout {
  display: grid;
  width: var(--container);
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-nav {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.legal-nav strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-nav a[aria-current="page"],
.legal-nav a:hover {
  color: var(--blue-deep);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 34px;
  scroll-margin-top: 112px;
}

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

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.2;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 14px;
  color: rgba(213, 226, 239, 0.76);
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 7px;
}

.identity-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.identity-list dt,
.identity-list dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.identity-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.identity-list dd {
  color: var(--ink);
  font-weight: 650;
}

.legal-table-wrap {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #0a1622;
  font-size: 0.86rem;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #102238;
  color: #dbe9fb;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-note {
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(79, 141, 247, 0.1);
  color: #d7e5f6;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px max(24px, calc((100vw - 1120px) / 2));
  background: var(--navy);
  color: #b6c4d5;
}

.legal-footer img {
  width: 142px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.legal-footer p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 800px) {
  :root {
    --container: min(100% - 32px, 720px);
  }

  .legal-header {
    min-height: 70px;
    padding: 10px 16px;
  }

  .legal-brand img {
    width: 142px;
    height: 44px;
  }

  .back-home span {
    display: none;
  }

  .back-home {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

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

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

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 0 0 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-nav strong {
    width: 100%;
    margin-bottom: 4px;
  }

  .identity-list {
    grid-template-columns: 1fr;
  }

  .identity-list dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .identity-list dd {
    padding-top: 2px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
