/* The methodology / corrections line. Sits above a page title or below a
   figure as a quiet footnote: muted context text, links in the ledger green
   with a hairline underline that brightens on hover. Without explicit colours
   these links fell through to the browser defaults (blue, then violet once
   visited), the one hue the theme forbids. */
.policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* The two links travel together, so a narrow screen breaks before the pair
   rather than stranding the separator at the end of a line. */
.policy-links-nav {
  display: inline-flex;
  align-items: baseline;
  gap: 0 0.6rem;
  white-space: nowrap;
}

.policy-links [aria-hidden] {
  color: var(--text-dim);
}

/* The second selector outranks application.css's .legal-content a, which
   loads later and would otherwise strip the underline on the policy pages. */
.policy-links a,
.legal-content .policy-links a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(76, 146, 104, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  border-radius: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.policy-links a:visited {
  color: var(--primary);
}

.policy-links a:hover,
.legal-content .policy-links a:hover {
  color: var(--text-bright);
  text-decoration-color: currentColor;
}

.policy-links a:focus-visible {
  outline: none;
  color: var(--text-bright);
  box-shadow: 0 0 0 3px var(--ring);
}

/* On the policy pages themselves the line follows the intro paragraph. */
.legal-content .policy-links {
  margin: 0 0 1.75rem;
}

.policy-contents ul {
  columns: 2 16rem;
}

.policy-contents li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.legal-content section[id] {
  scroll-margin-top: 6rem;
}
