/* The Terms of Use and Privacy Policy pages (cheermoves.com/terms and /privacy), made by site/legal/make-legal-pages.js,
   and the support page (cheermoves.com/support), made by site/support/make-support-page.js.
   On top of styles.css: plain reading pages, dark words on white, one column a comfortable line long. */

.legal-top {
  background: var(--field);
  padding: 1rem 0;
}

.legal-home {
  display: inline-block;
}

.legal-home img {
  width: 7.5rem;
}

.legal {
  max-width: 46rem;
  padding-top: 2.25rem;
  padding-bottom: 3.5rem;
  color: #1c2540;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.legal h1 {
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1;
}

.legal-updated {
  margin-top: 0.6rem;
  color: #4a5577;
}

/* The support page's opening sentence, under its name. */
.legal-intro {
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.legal section {
  margin-top: 2rem;
}

.legal h2 {
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  scroll-margin-top: 1rem;
}

.legal h3 {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  scroll-margin-top: 1rem;
}

/* A heading of its own (4.1, 4.2 ...) follows its section closely. */
.legal section:has(> h3) {
  margin-top: 1.5rem;
}

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal ul + ul,
.legal address,
.legal p + address,
.legal address + p {
  margin-top: 0.75rem;
}

.legal ul {
  padding-left: 1.4rem;
  list-style: disc;
}

.legal ul ul {
  margin-top: 0.35rem;
  list-style: circle;
}

.legal li + li {
  margin-top: 0.45rem;
}

.legal-lead,
.legal-conspicuous p,
.legal-conspicuous li {
  font-weight: 700;
}

.legal address {
  font-style: normal;
}

.legal a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--red-deep);
}
