/* shared-legal.css
   Copyright © 2026 LexPro. All rights reserved.

   The legal pages (pages/shared/legal_kit.dart), from
   app/lib/web/site/sections/legal_page.dart: one column of clauses 680 wide
   (side padding included), and on the K–12 site the "Editorial" header and
   clause titles. */

/* The K–12 header (_EdLegalHeader): a navy band, the title on the highlighter. */
.legal-ed-header.ed-band { padding: 88px 0 80px; }
.legal-ed-header__title {
  margin-top: 22px; font-size: clamp(44px, 7vw, 104px); line-height: 1; font-weight: 800;
  letter-spacing: -0.045em; color: var(--ed-paper);
}
.legal-marked {
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .05em 0 .04em; margin: 0 -.05em 0 -.04em;
  background: linear-gradient(var(--ed-coral), var(--ed-coral)) no-repeat 0 calc(100% - .05em) / 100% .29em;
}
.legal-ed-header__lede { font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ed-on-dark); }
@media (max-width: 600px) { .legal-ed-header.ed-band { padding: 48px 0; } }

.legal { padding: 24px 0 76px; }
/* The header lines up with the column under it. */
body:has(.legal) .page-header__inner { max-width: 680px; padding-left: 24px; padding-right: 24px; padding-bottom: 32px; }
.legal__column { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* For a reader not reading English: the clauses are English. */
.legal-english-only {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 16px 22px 18px 20px;
  border: 1px solid var(--home-line); border-radius: 14px; background: #fff;
  font-size: 16.5px; line-height: 1.6; font-weight: 500; color: var(--home-ink);
}
.legal-english-only__icon { color: var(--palette-accent-ink); }

.legal-updated { margin-bottom: 18px; font-size: 14.5px; line-height: 1.6; font-weight: 500; color: var(--home-muted); }

.legal-draft {
  padding: 18px 22px 20px 20px; border-left: 4px solid var(--palette-accent); border-radius: 14px;
  background: var(--palette-tint);
}
.legal-draft__kicker {
  margin-bottom: 10px; font-size: 13px; line-height: 1.6; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--home-ink);
}
.legal-draft__text { font-size: 16.5px; line-height: 1.65; font-weight: 500; color: var(--home-ink); }

/* LegalSummary */
.legal-summary { padding-top: 48px; }
.legal-summary__heading {
  padding-bottom: 14px; margin-bottom: 6px; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.02em; color: var(--home-ink); text-wrap: balance;
}

/* The bullets: a 7px dot in the product's ink. */
.legal-bullets { margin-bottom: 14px; }
.legal-bullets li {
  position: relative; padding: 0 0 10px 21px;
  font-size: 16.5px; line-height: 1.8; font-weight: 500; color: var(--home-text);
}
.legal-bullets li::before {
  content: ""; position: absolute; left: 0; top: calc((1.8em - 7px) / 2);
  width: 7px; height: 7px; border-radius: 50%; background: var(--palette-accent-ink);
}
.legal-bullets--lead { margin-bottom: 0; }
.legal-bullets--lead li { font-size: 17.5px; line-height: 1.7; color: var(--home-ink); }
.legal-bullets--lead li::before { top: calc((1.7em - 7px) / 2); }

/* LegalClause */
.legal-clause { padding-top: 44px; }
.legal-clause__title { margin-bottom: 14px; font-size: 20px; line-height: 1.6; font-weight: 700; color: var(--home-ink); }
.legal-clause__number { color: var(--palette-accent-ink); }
.legal--ed .legal-clause__title {
  display: flex; align-items: flex-start; margin-bottom: 16px; padding-top: 22px; border-top: 1px solid var(--ed-rule);
  font-size: 23px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ed-ink);
}
.legal--ed .legal-clause__number {
  flex: none; width: 48px; font-family: var(--font-numeral); font-size: 26px; line-height: .9; font-weight: 800;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ed-coral-ink);
}

.legal-subhead { padding: 12px 0 8px; font-size: 16.5px; line-height: 1.6; font-weight: 700; color: var(--home-ink); }
.legal-p { padding-bottom: 14px; font-size: 16.5px; line-height: 1.8; font-weight: 500; color: var(--home-text); }
.legal-p strong { font-weight: 700; color: var(--home-ink); }

/* LegalLinks */
.legal-links { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 8px; margin: 4px 0 14px; }
.legal-link {
  font-size: 16.5px; line-height: 1.8; font-weight: 700; color: var(--palette-accent-ink); text-decoration: none;
}
.legal-link--email { text-decoration: underline; }
.legal-link:hover { color: var(--home-ink); }

/* Bell & Beyond (legal--bell): the kit's teal header (shared-header.css),
   the column on the cream wash, the notes as sticker cards and each
   clause's number on a teal sticker tile. Teal text is teal 800. */
body:has(.legal--bell) .page-header__inner { padding-bottom: 56px; }
body:has(.legal--bell) .page-header__bell { width: 120px; }
.legal--bell { padding-top: 48px; background: var(--bb-cream); }
.legal--bell .legal-english-only,
.legal--bell .legal-draft {
  border: 2px solid var(--bb-navy); border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 var(--teal-400);
}
.legal--bell .legal-draft { box-shadow: 4px 4px 0 var(--bb-yellow); }
.legal--bell .legal-english-only__icon { color: var(--teal-800); }
.legal--bell .legal-draft__kicker { color: var(--teal-800); }
.legal--bell .legal-summary__heading { color: var(--bb-navy); }
.legal--bell .legal-bullets li::before { background: var(--teal-400); box-shadow: 0 0 0 1.5px var(--bb-navy); }
.legal--bell .legal-clause__title { display: flex; align-items: flex-start; gap: 14px; color: var(--bb-navy); }
.legal--bell .legal-clause__number {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
  padding: 0 6px; box-sizing: border-box; margin-top: -1px;
  border: 2px solid var(--bb-navy); border-radius: 10px; background: var(--teal-200); box-shadow: 2px 2px 0 var(--bb-navy);
  font-family: var(--font-numeral); font-size: 16px; line-height: 1; font-weight: 800; color: var(--bb-navy);
}
.legal--bell .legal-clause:nth-of-type(4n + 2) .legal-clause__number { background: #FFE28A; }
.legal--bell .legal-clause:nth-of-type(4n + 3) .legal-clause__number { background: #FFD3C4; }
.legal--bell .legal-clause:nth-of-type(4n + 4) .legal-clause__number { background: var(--navy-100); }
.legal--bell .legal-link { color: var(--teal-800); }
.legal--bell .legal-link:hover { color: var(--bb-navy); }
