@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/legal/plus-jakarta-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f2f6fc;
  --surface: #ffffff;
  --ink: #111c2d;
  --muted: #3c494c;
  --teal: #006875;
  --cyan: #00c9e0;
  --cyan-light: #33d9f0;
  --lavender: #f0f3ff;
  --peach: #fe9c84;
  --line: #e1e9f2;
  --soft-teal: #e7f6f8;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

::selection {
  background: #b3edf4;
  color: var(--ink);
}

.wrap {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
}

body > header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 36px;
  background: linear-gradient(118deg, #e2f9fc 0%, #edf9fc 52%, #f0f3ff 100%);
  border-bottom: 1px solid #dbeaf1;
}

body > header::before,
body > header::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
}

body > header::before {
  width: 380px;
  height: 380px;
  top: -170px;
  right: max(-120px, calc((100vw - 1200px) / 2));
  border: 58px solid rgb(51 217 240 / 9%);
}

body > header::after {
  width: 82px;
  height: 82px;
  right: max(40px, calc((100vw - 1080px) / 2));
  bottom: 44px;
  background: rgb(254 156 132 / 12%);
}

body > header > .wrap {
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin: 0 0 34px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.brand img {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 104 117 / 10%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 4.7vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

header .legal-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: static;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border: 0;
}

.legal-site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(0 104 117 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.legal-site-nav a:hover {
  border-color: var(--teal);
  background: var(--surface);
}

.legal-site-nav a[aria-current="page"] {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--surface);
  box-shadow: 0 4px 10px rgb(0 104 117 / 12%);
}

body > nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 10px rgb(17 28 45 / 3%);
}

body > nav > .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #becfd8 transparent;
}

body > nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

body > nav a:hover,
body > nav a:focus-visible {
  background: var(--soft-teal);
}

main.wrap {
  padding-block: 32px 52px;
}

main > section {
  margin: 0 0 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgb(17 28 45 / 2%);
  scroll-margin-top: 24px;
}

main > section:last-child {
  margin-bottom: 0;
}

main > section:target {
  border-color: #94cbd2;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 2.8vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.7px;
}

h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

p {
  margin: 0 0 16px;
}

section > :last-child,
details > :last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 750;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

li {
  padding-left: 3px;
  margin-block: 9px;
}

li::marker {
  color: var(--teal);
  font-weight: 750;
}

li > ul,
li > ol {
  margin-block: 10px 0;
}

.meta,
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.meta {
  margin-top: -4px;
  margin-bottom: 22px;
}

.notice {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #d5e7ed;
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: var(--lavender);
  color: var(--ink);
  font-weight: 650;
}

details {
  margin-top: 12px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafcff;
}

details[open] {
  border-color: #b4d7dd;
  background: var(--surface);
}

summary {
  position: relative;
  display: block;
  min-height: 60px;
  padding: 18px 60px 18px 20px;
  border-radius: 15px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 17px;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-teal);
  color: var(--teal);
  content: "+";
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

details[open] > summary {
  color: var(--teal);
}

details[open] > summary::after {
  content: "−";
  background: var(--teal);
  color: var(--surface);
}

summary:hover {
  background: var(--soft-teal);
}

summary:focus-visible {
  outline-offset: -4px;
}

details > :not(summary) {
  margin-right: 20px;
  margin-left: 20px;
}

details > :last-child {
  margin-bottom: 20px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--soft-teal);
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

body > footer {
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

body > footer > .wrap {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

body > footer a {
  display: inline-block;
  padding-block: 6px;
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  body > header {
    padding-block: 28px;
  }

  body > header::before {
    width: 260px;
    height: 260px;
    top: -135px;
    right: -135px;
    border-width: 38px;
  }

  body > header::after {
    right: -24px;
    bottom: 76px;
  }

  .brand {
    gap: 10px;
    margin-bottom: 28px;
    font-size: 23px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .subtitle {
    margin-top: 16px;
    font-size: 16px;
  }

  header .legal-site-nav {
    gap: 8px;
    margin-top: 24px;
  }

  .legal-site-nav a {
    padding-inline: 13px;
    font-size: 12px;
  }

  body > nav > .wrap {
    gap: 2px;
    padding-block: 8px;
  }

  body > nav a {
    padding-inline: 12px;
    font-size: 12px;
  }

  main.wrap {
    padding-block: 22px 36px;
  }

  main > section {
    margin-bottom: 16px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .notice {
    padding: 16px;
  }

  summary {
    padding-left: 16px;
  }

  details > :not(summary) {
    margin-inline: 16px;
  }

  body > footer {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  html {
    scroll-padding: 0;
  }

  body {
    background: white;
    color: black;
    font-size: 10pt;
    line-height: 1.5;
  }

  .wrap {
    width: 100%;
  }

  body > header {
    padding: 0 0 20px;
    background: white;
  }

  body > header::before,
  body > header::after,
  body > nav,
  header .legal-site-nav {
    display: none;
  }

  .brand {
    margin-bottom: 20px;
  }

  h1 {
    max-width: none;
    font-size: 28pt;
  }

  .subtitle {
    max-width: none;
    font-size: 11pt;
  }

  h2 {
    font-size: 17pt;
    break-after: avoid;
  }

  h3 {
    font-size: 12pt;
    break-after: avoid;
  }

  main.wrap {
    padding-block: 20px;
  }

  main > section {
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .notice {
    background: white;
    break-inside: avoid;
  }

  details {
    overflow: visible;
    background: white;
    break-inside: avoid;
  }

  summary {
    min-height: 0;
    padding-block: 12px;
  }

  summary::after {
    display: none;
  }

  details::details-content {
    content-visibility: visible;
    display: block;
    height: auto;
  }

  details > :not(summary) {
    display: block !important;
  }

  a {
    color: black;
  }

  body > footer {
    padding: 12px 0 0;
    font-size: 9pt;
  }
}
