/* Legal pages (privacy, terms) and the 404 page. */
/* legal pages: privacy policy and terms of use — a short summary first, then brief sections */
.legal-hero {
  background: var(--night);
  color: #fff;
  padding-top: calc(env(safe-area-inset-top, 0px) + 136px);
  padding-bottom: 64px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
}
.legal-hero p {
  color: var(--on-night-soft);
  margin: 12px auto 0;
  max-width: 56ch;
  font-size: 17.5px;
}
.legal-hero .updated {
  font-size: 14px;
  margin-top: 18px;
  opacity: 0.8;
}
/* 404 page: the dark legal hero filling the screen, with a way back */
.not-found {
  min-height: 72vh;
  display: grid;
  align-content: center;
}
.not-found .nf-code {
  margin: 0 auto 8px;
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-hi);
  opacity: 1;
}
.legal {
  padding-block: 0 112px;
}
.doc {
  max-width: 760px;
  margin: -32px auto 0;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px clamp(22px, 5vw, 56px) 40px;
  box-shadow: var(--shadow);
}
.summary {
  background: #eef3fd;
  border-radius: var(--r);
  padding: 26px 28px;
  margin-bottom: 40px;
}
.summary h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}
.summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.summary li {
  position: relative;
  padding-inline-start: 32px;
  color: var(--navy);
  font-size: 16.5px;
  line-height: 1.8;
}
.summary li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.doc section + section {
  margin-top: 30px;
}
.doc section h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.doc section p,
.doc section li {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.9;
}
.doc section ul {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 6px;
}
.doc a {
  color: var(--blue);
}

/* the header on legal pages is always solid (no hero image behind it) */
.legal-page .hdr {
  background: rgba(5, 13, 28, 0.88);
}
