:root {
  color-scheme: light;
  --legal-paper: #ffffff;
  --legal-canvas: #f3f6f6;
  --legal-ink: #102029;
  --legal-copy: #4f6068;
  --legal-muted: #708087;
  --legal-line: rgba(16, 32, 41, 0.12);
  --legal-blue: #2382ff;
  --legal-deep: #0b1a22;
  --legal-radius: 24px;
  --legal-shadow: 0 24px 70px rgba(11, 26, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--legal-canvas);
  color: var(--legal-ink);
  font-family: Inter, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--legal-deep);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--legal-line);
  background: rgba(243, 246, 246, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
}

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

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--legal-deep);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.legal-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.legal-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 22px;
}

.legal-header__nav a {
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

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

.legal-shell {
  max-width: 880px;
  padding: 72px 0 88px;
}

.legal-intro {
  margin-bottom: 36px;
}

.legal-eyebrow {
  margin: 0 0 16px;
  color: var(--legal-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--legal-deep);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.legal-intro p:last-child {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--legal-copy);
  font-size: 16px;
  line-height: 1.75;
}

.legal-document {
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--legal-radius);
  padding: clamp(28px, 6vw, 60px);
  background: var(--legal-paper);
  box-shadow: var(--legal-shadow);
  color: var(--legal-copy);
  font-size: 15px;
  line-height: 1.8;
}

.legal-document p {
  margin: 0 0 18px;
}

.legal-document p:empty {
  display: none;
}

.legal-document strong {
  color: var(--legal-deep);
  font-size: 1.04em;
  font-weight: 750;
}

.legal-document ol,
.legal-document ul {
  margin: 28px 0 18px;
  padding-left: 24px;
  color: var(--legal-deep);
  font-weight: 700;
}

.legal-document li > p {
  margin-bottom: 8px;
}

.legal-document a {
  color: #176bd1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 28px;
  border-top: 1px solid var(--legal-line);
  padding-top: 24px;
}

.legal-related a {
  color: var(--legal-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.legal-footer {
  border-top: 1px solid var(--legal-line);
  padding: 28px 0 34px;
  color: var(--legal-muted);
  font-size: 12px;
  line-height: 1.6;
}

.legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

@media (max-width: 720px) {
  .legal-header__inner,
  .legal-shell,
  .legal-footer__inner {
    width: min(calc(100% - 36px), 1120px);
  }

  .legal-header__inner {
    min-height: 64px;
  }

  .legal-header__nav a:not([aria-current="page"]):not(:first-child) {
    display: none;
  }

  .legal-shell {
    padding: 52px 0 64px;
  }

  .legal-intro {
    margin-bottom: 28px;
  }

  .legal-intro h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .legal-document {
    border-radius: 18px;
    padding: 28px 20px;
    font-size: 14px;
    line-height: 1.75;
  }
}

@media print {
  .skip-link,
  .legal-header,
  .legal-related,
  .legal-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .legal-document {
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}
