/* Privacy Policy and Terms pages (CHILD-SALES-001, row T-1, lanes C and D). Loaded after sales.css.
   One readable column of about 70 characters; every colour and gap is a token of sales.css:
   --edge, --gap-head, --gap-sec, --pad-card, --gap-item (phone 20, 24, 48, 24, 16; computer 58, 32, 96, 32, 24).
   The heading area carries the warm cream wash of the other pages' heroes, across the full width. */
body { overflow-x: clip; }

.lg-page {
  box-sizing: content-box;
  position: relative;
  isolation: isolate;
  max-width: 56ch; /* 60 to 75 letters a line, measured median about 68 at 1440 (fix round 2) */
  margin: 0 auto;
  /* fix round 4: "Back to the top" ink to the footer ink reads as one section gap (the link box and the footer's own
     top space already add about 36 px on the phone and 50 px on the computer) */
  padding: 0 var(--edge) 18px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.6;
}

/* the heading area: the cream wash of the other pages, edge to edge, a soft sun glow at the right */
.lg-head { position: relative; padding: var(--gap-sec) 0 var(--gap-sec); }
.lg-head::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  background:
    linear-gradient(to bottom, rgba(251, 244, 234, 0) 45%, var(--ground) 100%),
    radial-gradient(circle at 88% 30%, rgba(246, 195, 59, 0.28) 0, rgba(246, 195, 59, 0) 34%),
    radial-gradient(circle at 8% 100%, rgba(255, 228, 222, 0.7) 0, rgba(255, 228, 222, 0) 38%),
    var(--cream);
  /* no bottom line: the wash fades into the page ground (fix round 3) */
}
.lg-title { font-size: 40px; line-height: 1.1; color: var(--navy); }
.lg-updated {
  display: inline-block;
  margin-top: var(--gap-item);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(19, 35, 91, 0.08);
}
.lg-intro { margin-top: var(--gap-head); font-size: 19px; color: var(--navy); text-wrap: pretty; }

/* the section list: a compact card, numbers in coral, one tight line per link */
/* fix round 4: the heading area already ends with one section gap below the intro, so the list adds none (48 phone, 96 computer) */
.lg-toc { margin-top: 0; padding: var(--pad-card); }
.lg-toc-title { font-size: 20px; margin-bottom: 12px; color: var(--navy); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.lg-toc li { counter-increment: lg; position: relative; padding-left: 28px; break-inside: avoid; }
.lg-toc li::before { content: counter(lg) "."; position: absolute; left: 0; top: 4px; color: var(--coral); font-weight: 900; font-size: 15px; line-height: 1.35; }
.lg-toc a {
  display: block; padding: 4px 0; color: var(--navy); font-weight: 800; font-size: 15px; line-height: 1.35; text-decoration: none;
}
.lg-toc a:hover { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

.lg-sec a { color: var(--coral); font-weight: 800; text-underline-offset: 3px; }

.lg-sec { margin-top: var(--gap-sec); scroll-margin-top: calc(var(--top-h) + 16px); }
.lg-sec h2 { font-size: 26px; line-height: 1.2; color: var(--navy); margin-bottom: var(--gap-head); text-wrap: balance; }
/* fix round 5: body text wraps plainly, so every paragraph runs to the column edge (balance stays on headings only) */
.lg-sec p { margin-top: var(--gap-item); text-wrap: wrap; }
.lg-sec li { text-wrap: wrap; }
.lg-sec h2 + p, .lg-sec h2 + ul { margin-top: 0; }
.lg-sec ul { margin: var(--gap-item) 0 0; padding-left: 1.3em; }
.lg-sec li { margin-top: 8px; }
.lg-sec li::marker { color: var(--coral); }
.lg-sec ul ul { margin-top: 8px; }
.lg-sec strong { color: var(--navy); font-weight: 800; }

/* back to the top: the site's link style, a full tap height */
.lg-back { margin-top: var(--gap-sec); }
.lg-back a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  color: var(--coral); font-weight: 900; font-size: 17px;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.lg-back a::before {
  content: ""; width: 10px; height: 10px; margin-top: 5px;
  border: solid var(--coral); border-width: 3px 0 0 3px; transform: rotate(45deg);
}
.lg-back a:hover { color: var(--coral-hover); }

@media (min-width: 900px) {
  .lg-page { font-size: 18px; }
  .lg-title { font-size: 62px; }
  .lg-intro { font-size: 22px; }
  .lg-toc-title { font-size: 24px; margin-bottom: 16px; }
  /* fix round 4: one column, every item on one line */
  .lg-toc ol { columns: 1; }
  .lg-page { padding-bottom: 51px; }
  .lg-toc li { padding-left: 32px; }
  .lg-toc li::before, .lg-toc a { font-size: 17px; }
  .lg-toc a { padding: 5px 0; }
  .lg-sec h2 { font-size: 32px; }
  .lg-sec li { margin-top: 12px; }
  .lg-back a { font-size: 18px; }
}
