/*
 * The legal pages (/privacy-policy, /terms-of-service) and news releases (/news/…): long-form text in one column at the
 * site's reading measure (01-layout.css). Scoped to `.legal`, so no other page is affected.
 * The headings stay smaller than the marketing headings (03-typography.css), which are sized for
 * one heading per section; that rule's `:is(h2, #how h2)` carries an id's weight, so the h2 rule
 * below matches through `:is(h2, #legal-h2)` (an id no element has) to outrank it.
 */
html #main .legal-sec {
  padding-top: 64px;
}

html #main .legal {
  max-width: min(100%, var(--measure));
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

html #main .legal :is(h2, #legal-h2) {
  max-width: none;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  font-size: clamp(24px, 0.8vw + 18px, 30px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
  scroll-margin-top: 96px;
}

html #main .legal h3 {
  margin: 32px 0 8px;
  font-size: 20px !important;
  scroll-margin-top: 96px;
}

html #main .legal :is(p, ul) {
  margin: 0 0 16px;
}

html #main .legal ul {
  padding-left: 24px;
  list-style: disc;
}

html #main .legal li {
  margin-bottom: 8px;
  padding-left: 4px;
}

html #main .legal li::marker {
  color: var(--violet);
}

html #main .legal b {
  font-weight: 650;
}

html #main .legal a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html #main .legal .legal-notice {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border-left: 3px solid var(--violet);
  border-radius: 4px;
  background: var(--bg2, #f6f4fb);
  font-weight: 650;
}

/* An image in a news release (/news/…), e.g. the Gartner Cool Vendor badge with its caption. */
html #main .legal figure {
  margin: 8px 0 24px;
}

html #main .legal figure img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

html #main .legal figcaption {
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}
