/*
 * Privacy page styles (privacy-page): the reading column of /privacy, its intro and its hairline
 * sections. Every value comes from tokens.css; phone styles first, no breakpoint of its own.
 */

/* PRIVACY_MEASURE at every width; main's gutter puts its left edge on the wordmark's */
.privacy {
  max-width: var(--privacy-measure);
}

.privacy__intro {
  display: flex;
  flex-direction: column;
  gap: var(--privacy-intro-gap);
  padding-top: var(--privacy-intro-padding-top);
}

/* PRIVACY_TITLE_WRAP: the one-word title breaks inside the word rather than overflowing at 200 % */
.privacy h1 {
  overflow-wrap: anywhere;
}

/* The flex gaps alone space the page, so no element keeps a browser margin */
.privacy h1,
.privacy__lede,
.privacy__heading,
.privacy__text {
  margin: 0;
}

.privacy__lede {
  color: var(--ink-2);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.privacy__sections {
  display: flex;
  flex-direction: column;
  gap: var(--privacy-section-gap);
  padding-top: var(--privacy-list-padding-top);
}

.privacy__section {
  display: flex;
  flex-direction: column;
  gap: var(--privacy-section-inner-gap);
  padding-top: var(--privacy-section-padding-top);
  border-top: var(--hairline-width) solid var(--line);
}

/* PRIVACY_SECTION_TITLE_STYLE: the card-title size over the site h2 */
.privacy__heading {
  font-size: var(--fs-card-title);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-tight);
}

.privacy__text {
  color: var(--ink-2);
  font-size: var(--fs-body-lg);
  line-height: var(--privacy-text-line-height);
}

/* The deletion address (DeletionAddressLink): underlined so colour is never the only cue; an inline
   block whose PRIVACY_LINK_HIT_PADDING makes it TAP_MIN tall, with an equal negative margin so the
   lines keep their spacing; it breaks inside the address rather than overflowing. Engines round the
   line and the padding down to 1/64 px (43.97 px), so min-height holds the box at TAP_MIN. Once the
   line is taller than TAP_MIN (from about 168 % text) the padding and the margin both stop at zero,
   since a negative padding is dropped while a positive margin would push the lines apart */
.privacy__link {
  display: inline-block;
  min-height: var(--tap-min);
  margin-block: min(0px, calc((var(--tap-min) - var(--privacy-text-line-height) * 1em) / -2));
  padding-block: max(0px, calc((var(--tap-min) - var(--privacy-text-line-height) * 1em) / 2));
  color: var(--primary);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* Hover only where a pointer can hover; the focus ring stays site.css's */
@media (hover: hover) and (pointer: fine) {
  .privacy__link:hover {
    color: var(--ink);
  }
}
