:root {
  --ink: #071a49;
  --blue: #1457f5;
  --wash: #edf4ff;
  --white: #ffffff;
  --page-pad: clamp(20px, 5vw, 64px);
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Avenir Next", "Futura", sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}

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

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

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0 0 1.15em;
}

ul {
  margin: 1.1em 0 1.5em;
  padding-left: 1.4em;
}

li {
  margin-bottom: .58em;
  padding-left: .3em;
}

li::marker {
  color: var(--blue);
  font-weight: 900;
}

strong {
  font-weight: 800;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--wash);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width .1s linear;
}

.document-header {
  color: var(--white);
  background: var(--ink);
}

.header-inner,
.document-heading,
.policy-layout,
.footer-inner {
  width: min(1160px, calc(100% - var(--page-pad) * 2));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.06em;
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
  background: transparent;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--wash);
  border-radius: 10px;
}

.brand span > span {
  color: var(--wash);
}

.document-type {
  color: var(--wash);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.policy-document {
  position: relative;
}

.document-heading {
  position: relative;
  display: grid;
  gap: clamp(36px, 6vw, 90px);
  isolation: isolate;
  padding-block: clamp(58px, 8vw, 108px) clamp(48px, 6vw, 78px);
  grid-template-columns: minmax(0, 1fr) 255px;
}

.document-heading::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(42vw, 620px);
  height: 100%;
  background: var(--blue);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.heading-copy {
  position: relative;
}

.product-name {
  margin-bottom: 30px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.document-heading h1 {
  max-width: 820px;
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: clamp(66px, 9vw, 128px);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .94;
}

.document-heading h1 span {
  display: inline-block;
  margin-top: .08em;
  padding-inline: .06em;
  color: var(--blue);
  background: var(--white);
}

.document-intro {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.document-meta {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 24px;
  color: var(--white);
  background: var(--ink);
}

.document-meta div {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-top: 1px solid var(--wash);
}

.document-meta div:first-child {
  border-top: 0;
}

.document-meta span {
  color: var(--wash);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document-meta strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.document-meta > a {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--wash);
  color: var(--wash);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.document-meta > a:hover {
  color: var(--white);
  background: transparent;
}

.policy-layout {
  display: grid;
  align-items: start;
  gap: clamp(42px, 7vw, 96px);
  padding-block: 0 clamp(80px, 11vw, 144px);
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.policy-sidebar {
  position: sticky;
  top: 24px;
  padding-top: 48px;
}

.toc-box {
  background: var(--white);
}

.toc-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.toc-box summary::-webkit-details-marker {
  display: none;
}

.toc-box summary::after {
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  content: "+";
}

.toc-box[open] summary::after {
  content: "−";
}

.toc-box summary > span {
  margin-left: auto;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
}

.toc {
  display: grid;
  padding: 10px 18px 18px;
}

.toc a {
  display: grid;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid var(--wash);
  font-size: 12px;
  font-weight: 700;
  grid-template-columns: 24px 1fr;
  line-height: 1.35;
  text-decoration: none;
}

.toc a span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
}

.toc a:hover,
.toc a.is-active {
  color: var(--ink);
  background: var(--white);
}

.toc a.is-active {
  font-weight: 900;
}

.sidebar-note {
  margin-top: 26px;
  padding: 19px;
  border: 1px solid var(--ink);
}

.sidebar-note span {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sidebar-note a {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration: none;
}

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

.policy-content section {
  position: relative;
  padding-block: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--ink);
}

.policy-content section:first-child {
  padding-top: 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-label span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
}

.policy-content h2 {
  max-width: 780px;
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .95;
}

.policy-content h3 {
  margin: 30px 0 12px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.policy-content p,
.policy-content li {
  max-width: 800px;
}

.policy-content section > h2 + p {
  font-size: 18px;
}

.notice {
  max-width: 800px;
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 6px solid var(--blue);
  background: var(--wash);
  font-size: 15px;
  line-height: 1.65;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sdk-card {
  position: relative;
  margin: 18px 0;
  padding: 25px 26px;
  background: var(--white);
}

.sdk-card h3 {
  margin: 0 0 10px;
}

.sdk-card p {
  margin-bottom: 0;
}

.sdk-index {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--wash);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.contact-section {
  border-bottom: 0;
}

.contact-section address {
  max-width: 800px;
  padding: clamp(26px, 4vw, 40px);
  color: var(--white);
  background: var(--ink);
  font-style: normal;
}

.contact-section address strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.04em;
}

.contact-section address > span {
  display: block;
  margin: 14px 0 20px;
  color: var(--wash);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-section address > a {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-section address > a:hover {
  color: var(--ink);
  background: var(--white);
}

.contact-section address p {
  margin: 24px 0 0;
  color: var(--wash);
  font-size: 14px;
  line-height: 1.6;
}

.document-footer {
  padding-block: 36px;
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--wash);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
  background: var(--white);
}

@media (max-width: 820px) {
  .document-heading {
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .document-heading::before {
    top: 0;
    width: 50%;
    height: 42%;
    opacity: .1;
  }

  .document-meta {
    display: grid;
    width: 100%;
    gap: 0 28px;
    grid-template-columns: 1fr 1fr;
  }

  .document-meta > a {
    grid-column: 1 / -1;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
    padding-top: 0;
  }

  .toc-box summary {
    padding: 15px 0;
    background: transparent;
  }

  .toc {
    padding: 6px 0 18px;
  }

  .toc a {
    padding-block: 10px;
  }

  .sidebar-note {
    display: none;
  }

  .policy-content section:first-child {
    padding-top: 38px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 18px;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .header-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 16px;
  }

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

  .document-type {
    max-width: 110px;
    font-size: 8px;
    line-height: 1.3;
    text-align: right;
  }

  .document-heading {
    padding-top: 48px;
  }

  .product-name {
    margin-bottom: 22px;
    font-size: 8px;
  }

  .document-heading h1 {
    margin-bottom: 24px;
    font-size: clamp(60px, 21vw, 86px);
  }

  .document-intro {
    font-size: 17px;
  }

  .document-meta {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .document-meta > a {
    grid-column: auto;
  }

  .policy-content section {
    padding-block: 42px;
  }

  .policy-content h2 {
    margin-bottom: 23px;
    font-size: clamp(34px, 11vw, 46px);
  }

  .policy-content h3 {
    font-size: 20px;
  }

  .policy-content section > h2 + p {
    font-size: 16px;
  }

  ul {
    padding-left: 1.2em;
  }

  .notice {
    padding: 19px;
  }

  .sdk-card {
    padding: 21px;
  }

  .sdk-index {
    top: 16px;
    right: 16px;
    font-size: 28px;
  }

  .contact-section address {
    padding: 23px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
