/* =========================================================================
   Trust & legal family (prefix lg-): review-methodology, editorial-policy, affiliate-disclosure,
   earnings-disclaimer, privacy-policy, terms-of-use, cookie-policy, accessibility.
   1 hero (desk scene + HTML handwriting) · 2 page frame · 3 numbered sections · 4 sidebar boxes
   5 CTA band & trust strip · 6 per-page hero overlay positions · 7 responsive
   ========================================================================= */

/* ---------- 1. Hero: copy left, desk scene right, handwritten words as HTML ---------- */
.lg-hero {
  --hero-fade: linear-gradient(90deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.9) 9%, rgba(255,255,255,.9) 43%, rgba(255,255,255,.62) 52%, rgba(255,255,255,0) 61%);
  background: #eef1f3;
}
.lg-hero .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--lg-hero-pad, .5rem .7rem); }
.lg-hero .hero__content { max-width: var(--hero-copy, 37rem); }
.lg-hero .breadcrumb { font-size: 1rem; margin-bottom: .2rem; }
.lg-hero .hero__title { font-size: var(--lg-h1, clamp(2rem, 1rem + 2.2vw, 2.7rem)); line-height: 1.04; letter-spacing: -.03em; margin-bottom: .18em; }
.lg-hero .hero__lead { font-size: max(var(--lg-lead, 1.05rem), 16px) /* rt-1019 */; line-height: 1.26; color: var(--ink); max-width: var(--lg-lead-w, 32rem); }
.lg-points { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: nowrap; gap: .55rem .9rem; width: max-content; max-width: min(46rem, 100vw - 2 * var(--gutter)); }
.lg-points li { display: flex; align-items: center; gap: .5rem; flex: 0 1 var(--lg-pt, 10.6rem); font-size: max(.68rem, 16px) /* rt-1019 */; line-height: 1.28; color: var(--muted); }
.lg-points strong { display: block; color: var(--ink); font-size: .73rem; font-weight: 700; }
/* Keep the point text readable where it runs over the photo */
.lg-points li > span:last-child { padding: .1rem .3rem; margin-left: -.3rem; border-radius: 6px; background: rgba(255,255,255,.72); }
.lg-points .ib { --s: 36px; }

/* Photo layers: a soft blurred backdrop (full bleed) + the sharp desk scene, sized by the hero height so the laptop
   always fills the band; the words on the laptop screen and mug are HTML laid over the photo. */
.lg-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.lg-hero__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-scene {
  position: absolute; top: var(--sc-top, -6%); height: var(--sc-h, 112%); right: var(--sc-right, 7%); aspect-ratio: 1680 / 720;
  container-type: inline-size;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 96%, transparent 100%);
}
.lg-scene picture, .lg-scene img { width: 100%; height: 100%; }
.lg-screen {
  position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh); margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; padding: 1.5cqw 2cqw;
  color: var(--ink); text-align: left;
}
.lg-screen__logo { display: flex; align-items: center; gap: .8cqw; font-family: var(--font-head); font-weight: 800; font-size: 1.45cqw; line-height: 1.02; letter-spacing: .05em; text-transform: uppercase; }
.lg-screen__logo img { width: 4.4cqw; height: auto; }
.lg-screen__text { font-family: var(--font-script); font-weight: 600; font-size: var(--st, 4.3cqw); line-height: 1.05; transform: rotate(-4deg); }
.lg-screen__text::after { content: ""; display: block; width: 72%; height: .45cqw; margin: .6cqw 0 0 .4cqw; border-radius: 9px; background: var(--green-600); transform: rotate(-2deg); }
.lg-mug {
  position: absolute; left: var(--mx); top: var(--my); width: var(--mw); height: var(--mh); margin: 0;
  display: grid; place-content: center; font-family: var(--font-script); font-weight: 600; font-size: max(var(--mt, 2.15cqw), 16px) /* rt-1019 */; line-height: 1.02;
  color: var(--ink); text-align: center; transform: rotate(-5deg);
}
.lg-hero .hero__note { font-size: max(clamp(1.1rem, .7rem + 1vw, 1.55rem), 14px) /* rt-1019 */; top: .9rem; right: clamp(.75rem, 3vw, 3rem); }

/* ---------- 2. Page frame (content width follows each design's proportion) ---------- */
.lg-wrap { width: min(100% - 2 * var(--gutter), var(--lg-w, 1184px)); margin-inline: auto; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--lg-aside, 377px); gap: var(--lg-gap, 1.5rem); align-items: start; padding-block: var(--lg-pad, .7rem 1rem); }
.lg-main { min-width: 0; }
.lg-aside { display: grid; gap: .75rem; min-width: 0; }
.lg-note { margin: 0 0 .45rem; font-size: .72rem; padding: .25rem .65rem; }
.lg-note a { color: inherit; }

/* ---------- 3. Numbered sections ---------- */
.lg-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lg-item-gap, .4rem); }
.lg-items h2 { font-size: var(--lg-h2, 1.08rem); margin: 0 0 .08rem; letter-spacing: -.01em; }
.lg-items p { margin: 0; font-size: max(var(--lg-p, .8rem), 16px) /* rt-1019 */; line-height: 1.34; color: var(--text); }
.lg-items p + p { margin-top: .3rem; }
/* 3a. Icon square + lightly framed text (review methodology, editorial policy) */
.lg-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: start; scroll-margin-top: 5rem; }
.lg-item__icon { --s: 58px; border-radius: 10px; }
.lg-item__icon .icon { width: 56%; height: 56%; stroke-width: 2.6; }
.lg-item__body { min-height: 58px; padding: .2rem .9rem .35rem; border: 1px solid #edf1f6; border-radius: 8px; }
/* 3b. Circle icon + title rows divided by lines (privacy) and bordered cards (cookie, accessibility) */
.lg-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; scroll-margin-top: 5rem; }
.lg-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }

/* ---------- 4. Sidebar boxes ---------- */
.lg-box { padding: .95rem 1.1rem; border-radius: var(--radius); background: var(--bg-tint); border: 1px solid #e3ebf6; }
.lg-box--green { background: var(--bg-green); border-color: #d9eedc; }
.lg-box--white { background: #fff; border-color: var(--line); box-shadow: var(--shadow-xs); }
.lg-box h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.lg-box p { font-size: max(.82rem, 16px) /* rt-1019 */; line-height: 1.4; margin: 0; }
.lg-box__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .9rem; align-items: start; }
.lg-box__head > .ib { --s: 48px; }
.lg-box__head--tight { column-gap: .75rem; }
.lg-box__head > .ib, .lg-box__head > .lg-glyph { grid-row: span 2; }
.lg-glyph { display: grid; place-items: center; width: 52px; height: 52px; color: var(--c, var(--blue-600)); }
.lg-glyph .icon { width: 100%; height: 100%; stroke-width: 2.3; }
.lg-box .btn { margin-top: .75rem; }
.lg-checks { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .3rem; }
.lg-checks li { position: relative; padding-left: 1.7rem; font-size: max(.82rem, 16px) /* rt-1019 */; line-height: 1.32; color: var(--text); }
.lg-checks li::before { content: ""; position: absolute; left: 0; top: .02em; width: 1.12rem; height: 1.12rem; border-radius: 50%; background: var(--green-600) no-repeat center / 68% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
/* TOC with straight arrows, as in the designs */
.lg-toc { margin-top: .15rem; }
.lg-toc a { padding: .1rem 0; font-size: .82rem; line-height: 1.3; }
.lg-toc a::after { width: .9em; height: .9em; border: 0; transform: none; margin-right: .1rem; background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.lg-toc li { border-bottom-color: #e2eaf4; }
/* Numbered circles instead of "1." (earnings disclaimer, cookie policy) */
.lg-toc--circles a { grid-template-columns: 1.55rem minmax(0, 1fr) auto; }
.lg-toc--circles a::before { content: counter(toc); display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: .66rem; font-weight: 700; }
.lg-toc--plain-end a::after { content: none; }
.lg-toc--plain-end a { grid-template-columns: 1.6rem minmax(0, 1fr); }
/* Small "100% Free · No Spam · Unsubscribe Anytime" row */
.lg-ticks { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .76rem; color: var(--text); }
.lg-ticks li { display: inline-flex; align-items: center; gap: .3rem; }
.lg-ticks .icon { width: 1.05rem; height: 1.05rem; color: var(--green-600); }
.lg-kit .form-inline { margin-top: .7rem; }
.lg-kit .form-inline input { min-height: 42px; font-size: .84rem; }
.lg-kit .form-inline .btn { min-height: 42px; margin: 0; font-size: .86rem; padding-inline: .9rem; }
.lg-kit .form-inline--stack .btn { width: 100%; }

/* ---------- 5. CTA band & trust strip ---------- */
.lg-cta .cta-band__inner { justify-content: space-between; gap: .6rem 1.5rem; padding-block: .5rem; width: min(100% - 2 * var(--gutter), var(--lg-cta-w, 940px)); }
.lg-cta .cta-band__copy { max-width: 34rem; }
.lg-cta h2 { font-size: clamp(1.05rem, .95rem + .3vw, 1.18rem); margin-bottom: .05rem; }
.lg-cta p { font-size: max(.78rem, 16px) /* rt-1019 */; line-height: 1.3; }
.lg-cta .btn { min-height: 34px; padding: .35rem .95rem; font-size: .8rem; }
.lg-cta .btn--white .icon { color: var(--navy-900); width: 1.35em; height: 1.35em; }
.lg-trust .trust-strip__inner { width: min(100% - 2 * var(--gutter), var(--lg-trust-w, 1200px)); padding-block: .45rem; gap: .5rem 1rem; }
.lg-trust { background: #f6f8fb; }
.lg-trust .trust-item { font-size: max(.74rem, 16px) /* rt-1019 */; }
.lg-trust .trust-item strong { font-size: .84rem; font-weight: 800; }
.lg-trust .trust-item > .icon { width: 28px; height: 28px; }
.lg-trust .stars { font-size: .9rem; }
.lg-trust .c-ink { color: var(--navy-900); }
.lg-trust .c-gold { color: var(--gold); }
.lg-trust .c-blue { color: var(--blue-600); }
.lg-quote { display: flex; align-items: center; gap: .7rem; font-size: .74rem; color: var(--muted); }
.lg-quote blockquote { margin: 0; max-width: 17rem; font-style: italic; color: var(--text); line-height: 1.35; }
.lg-quote .avatar { --s: 44px; }
.lg-quote cite { font-style: normal; line-height: 1.3; }
.lg-quote cite strong { display: block; color: var(--ink); font-size: .8rem; }

/* ---------- 6. Hero overlay positions (measured on each generated photo, % of the scene) ---------- */
.lg-scene--rm { --sx: 32.86%; --sy: 22.78%; --sw: 37.86%; --sh: 57.78%; --mx: 83.04%; --my: 65.28%; --mw: 9.82%; --mh: 20.83%; }
.ep-hero { --sc-right: 7.8%; }
.lg-scene--ep { --sx: 33.1%; --sy: 20.56%; --sw: 36.43%; --sh: 52.78%; --mx: 77.38%; --my: 64.58%; --mw: 8.63%; --mh: 18.75%; --mt: 1.8cqw; }
.lg-scene--ad { --sx: 32.14%; --sy: 22.22%; --sw: 37.14%; --sh: 55.56%; --mx: 79.46%; --my: 64.58%; --mw: 9.23%; --mh: 20.83%; --mt: 1.85cqw; }
.lg-scene--ed { --sx: 34.05%; --sy: 20%; --sw: 34.29%; --sh: 56.11%; --mx: 73.81%; --my: 65.28%; --mw: 8.63%; --mh: 19.44%; --mt: 1.75cqw; }
.lg-scene--pp { --sx: 33.33%; --sy: 23.33%; --sw: 34.05%; --sh: 50.56%; --mx: 78.27%; --my: 62.5%; --mw: 8.63%; --mh: 20.83%; --st: 4.6cqw; }
.lg-scene--tu { --sx: 34.52%; --sy: 22.22%; --sw: 32.86%; --sh: 49.44%; --mx: 76.49%; --my: 64.58%; --mw: 8.33%; --mh: 20.14%; --st: 4.1cqw; }
.lg-scene--cp { --sx: 34.52%; --sy: 23.33%; --sw: 33.1%; --sh: 50%; --mx: 78.27%; --my: 63.19%; --mw: 8.93%; --mh: 20.14%; --st: 4.4cqw; }
.lg-scene--ac { --sx: 31.43%; --sy: 22.78%; --sw: 37.86%; --sh: 54.44%; --mx: 75.6%; --my: 68.75%; --mw: 9.82%; --mh: 18.75%; --mt: 1.85cqw; }

/* ---------- 7. Responsive ---------- */
@media (max-width: 1100px) {
  .lg-wrap.lg-wrap { --lg-w: 1184px; }  /* doubled class: beats the page-level vw widths */
  .lg-grid { --lg-aside: 300px; }
  .lg-hero .hero__content { max-width: 34rem; }
  .lg-scene { --sc-right: 0%; }
}
@media (max-width: 1100px) {
  /* Tablets and phones: the desk scene becomes a banner above the copy */
  .lg-hero { display: flex; flex-direction: column; background: #fff; }
  .lg-hero::before { display: none; }
  .lg-hero__media { position: relative; inset: auto; order: 0; height: var(--lg-banner-h, 230px); }
  .lg-scene { top: -4%; height: 108%; right: auto; left: 50%; transform: translateX(-54%); }
  .lg-hero .hero__inner { order: 1; padding-block: .9rem 1.1rem; }
  .lg-hero .hero__content { max-width: none; }
  .lg-hero .hero__inner { padding-inline-start: 0; }
  .lg-hero .hero__note { display: none; }
  .lg-hero .hero__lead { max-width: 46rem; }
  .lg-points { width: auto; max-width: none; flex-wrap: wrap; }
  .lg-points li { max-width: none; flex: 1 1 13rem; }
  .lg-points li > span:last-child { background: none; }
}
@media (max-width: 960px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lg-hero__media { height: var(--lg-banner-h-sm, 190px); }
  .lg-hero .breadcrumb { font-size: .9rem; }
  .lg-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .lg-points li { font-size: max(.74rem, 16px) /* rt-1019 */; }
  .lg-points strong { font-size: .8rem; }
  .lg-item { gap: .8rem; }
  .lg-item__icon { --s: 46px; }
  .lg-item__body { padding: .35rem .7rem .55rem; }
  .lg-cta .cta-band__inner { padding-block: 1rem; }
  .lg-cta .btn-row { width: 100%; }
  .lg-cta .btn-row .btn { flex: 1 1 14rem; }
  .lg-trust .trust-strip__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding-block: .9rem; }
  .lg-quote { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .lg-points { grid-template-columns: minmax(0, 1fr); }
  .lg-trust .trust-strip__inner { grid-template-columns: minmax(0, 1fr); }
}
.lg-chat { width: 100%; height: 100%; }
/* Hero copy offset per design (the narrower legal designs start their copy further right) */
@media (min-width: 1101px) { .lg-hero .hero__inner { padding-inline-start: var(--lg-hx, clamp(0px, 22.4vw - 201px, 96px)); } }
/* One-row CTA band and trust strip on desktop, as in the designs */
@media (min-width: 961px) {
  .lg-cta .cta-band__inner { flex-wrap: nowrap; }
  .lg-cta .cta-band__copy { flex: 1 1 auto; }
  .lg-cta .btn-row { flex: none; flex-wrap: nowrap; }
}
@media (min-width: 1181px) {
  .lg-trust .trust-strip__inner { flex-wrap: nowrap; gap: .5rem .8rem; }
  .lg-trust .trust-item { flex: 0 1 auto; }
}
.lg-quote blockquote { max-width: 14.5rem; font-size: max(.7rem, 16px) /* rt-1019 */; }
.lg-quote .avatar { --s: 38px; }
.lg-trust__rate + span { display: block; font-size: .7rem; }
