/* ==========================================================================
   LEGAL PAGES — /privacy/ and /terms/.

   Plain long-form reading: one text column at a comfortable measure, a short
   contents list, no decoration. Built only from existing tokens.
   ========================================================================== */

/* The hero title on these pages is a document title, not a statement, so it
   is set well below the monumental editorial size. */
.lg-hero {
  padding-block: clamp(72px, 11vh, 132px) clamp(32px, 5vh, 56px);
}

.lg-hero .p-hero__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.04;
}

.lg-updated {
  font-size: var(--fs-small);
  color: var(--gray-600);
}

/* Layout: contents list beside the text from 1024px up, stacked below. */
.lg-doc {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (min-width: 1024px) {
  .lg-doc {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
    column-gap: clamp(48px, 6vw, 96px);
  }

  .lg-toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.lg-toc__title {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: var(--space-4);
}

.lg-toc ol {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lg-toc;
}

.lg-toc li {
  counter-increment: lg-toc;
  font-size: var(--fs-small);
  line-height: 1.45;
  padding-left: 2.25em;
  position: relative;
}

.lg-toc li::before {
  content: counter(lg-toc) ".";
  position: absolute;
  left: 0;
  color: var(--gray-600);
}

.lg-toc a {
  color: var(--gray-700);
  text-decoration: none;
}

.lg-toc a:hover,
.lg-toc a:focus-visible {
  color: var(--blue-700);
  text-decoration: underline;
}

/* The text column. */
.lg-body {
  max-width: 68ch;
  min-width: 0;
  color: var(--gray-700);
}

.lg-body > * + * {
  margin-top: var(--space-4);
}

.lg-body h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: clamp(40px, 6vh, 64px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.lg-body h2:first-child {
  margin-top: 0;
}

.lg-body h3 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  margin-top: var(--space-8);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.lg-body p,
.lg-body li {
  color: var(--gray-700);
  line-height: 1.7;
}

.lg-body ul {
  display: grid;
  gap: var(--space-3);
  margin-left: 0;
  padding-left: var(--space-6);
  list-style: disc;
}

.lg-body a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.lg-body a:hover {
  color: var(--blue-800);
}

.lg-body code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* Placeholder that still needs confirming before launch. Visible on purpose. */
.lg-placeholder {
  background-color: var(--blue-050);
  padding-inline: 0.25em;
  border-radius: 2px;
}

/* Footer legal links are styled in sections.css (they appear on every page). */
