:root {
  color-scheme: light dark;
  --background: #f6f5fb;
  --surface: #ffffff;
  --surface-soft: #f1eff9;
  --text: #1f1d2b;
  --muted: #625f70;
  --border: #dedbe9;
  --accent: #6f55c7;
  --accent-strong: #4f369f;
  --accent-soft: #eee9ff;
  --success: #236b54;
  --shadow: 0 24px 70px rgb(48 38 82 / 10%);
  --radius-large: 24px;
  --radius-medium: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  transform: translateY(-180%);
}

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

.page-width {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 88px;
  background:
    radial-gradient(circle at 10% -10%, rgb(255 255 255 / 42%), transparent 36%),
    linear-gradient(145deg, #573ba9 0%, #7c5ed0 58%, #a786df 100%);
  color: #fff;
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 68px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.document-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.document-nav a {
  padding: 7px 12px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.document-nav a:hover,
.document-nav a[aria-current="page"] {
  background: rgb(255 255 255 / 22%);
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;
  background: rgb(255 255 255 / 15%);
  backdrop-filter: blur(12px);
}

.brand__mark svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
  opacity: 0.78;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero__summary {
  max-width: 740px;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 86%);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

.updated {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 650;
  opacity: 0.7;
}

.layout {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: -48px;
  padding-bottom: 40px;
}

.summary,
.policy-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: var(--radius-medium);
}

.summary h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.summary li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.summary li span {
  color: var(--success);
  font-weight: 800;
}

.summary nav {
  display: grid;
  gap: 4px;
  padding-top: 18px;
}

.summary nav a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
}

.summary nav a:hover {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.policy-card {
  overflow: hidden;
  padding: 32px clamp(26px, 5vw, 64px);
  border-radius: var(--radius-large);
}

.policy-card section {
  scroll-margin-top: 24px;
}

.policy-card section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.policy-card h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.policy-card h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.policy-card p {
  margin: 0 0 16px;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  margin: 16px 0 18px;
  padding-left: 1.35em;
}

.policy-card li + li {
  margin-top: 9px;
}

.notice {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius-medium);
  background: var(--accent-soft);
}

.notice h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.notice p {
  color: color-mix(in srgb, var(--text) 80%, var(--muted));
}

.policy-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.policy-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero {
    padding-bottom: 64px;
  }

  .brand {
    margin-bottom: 16px;
  }

  .document-nav {
    margin-bottom: 20px;
  }

  .layout {
    grid-template-columns: 1fr;
    margin-top: -32px;
  }

  .summary {
    position: static;
  }

  .summary nav {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .page-width {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding-top: 24px;
  }

  .policy-card section + section {
    margin-top: 20px;
    padding-top: 20px;
  }

  .policy-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121016;
    --surface: #1d1a24;
    --surface-soft: #292432;
    --text: #f1eef7;
    --muted: #c2bdcb;
    --border: #3b3447;
    --accent: #b59af3;
    --accent-strong: #c9b4ff;
    --accent-soft: #2d2442;
    --success: #7bd0ad;
    --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  }

  .hero {
    background:
      radial-gradient(circle at 10% -10%, rgb(255 255 255 / 10%), transparent 36%),
      linear-gradient(145deg, #342064 0%, #563994 58%, #7653a8 100%);
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .hero {
    padding: 0 0 28px;
    background: none;
    color: #111;
  }

  .brand {
    margin-bottom: 32px;
  }

  .document-nav {
    display: none;
  }

  .hero__summary,
  .updated {
    color: #333;
  }

  .layout {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0;
  }

  .summary {
    display: none;
  }

  .policy-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .policy-card section + section {
    break-inside: avoid;
  }

  .policy-footer {
    display: none;
  }
}

/* Legal navigation includes the local landing page and must wrap on narrow screens. */
.document-nav { flex-wrap: wrap; }
