/* =====================================================================
   About and the legal and trust pages (privacy, terms, security, refunds).
   Loaded after landing.css (tokens, shared kit, and the Lamplight remap of
   the older .mkt-doc / .mkt-legal classes these pages are written in).
   ===================================================================== */

/* ---- legal and trust pages: a header, then contents beside the text ------ */
body.lp-dark .mkt-doc { padding-top: clamp(52px, 7vw, 100px); }
body.lp-dark .mkt-doc__inner.mkt-doc__inner--legal {
  max-width: var(--lp-container);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px);
  grid-template-areas: "draft draft" "head head" "toc body";
}
.mkt-doc__inner--legal > .mkt-draft { grid-area: draft; }
.mkt-doc__inner--legal > .mkt-doc__head { grid-area: head; }
.mkt-doc__inner--legal > .mkt-toc { grid-area: toc; }
.mkt-doc__inner--legal > .mkt-legal { grid-area: body; max-width: 700px; }

body.lp-dark .mkt-doc__inner--legal .mkt-doc__head {
  margin-bottom: clamp(40px, 6vw, 64px); padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--lp-line);
}
body.lp-dark .mkt-doc__inner--legal .mkt-doc__head .lp-kicker { margin-bottom: 20px; }
body.lp-dark .mkt-doc__inner--legal .mkt-doc__h1 { max-width: 20ch; margin: 0 0 18px; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.024em; }
body.lp-dark .mkt-doc__inner--legal .mkt-doc__lead { max-width: 62ch; margin: 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.65; }
body.lp-dark .mkt-doc__inner--legal .mkt-doc__meta { margin: 8px 0 0; font-size: .9rem; line-height: 1.6; }
body.lp-dark .mkt-doc__inner--legal .mkt-doc__meta strong { color: var(--lp-text-2); font-weight: 500; }

/* the draft notice */
body.lp-dark .mkt-doc__inner--legal .mkt-draft {
  margin: 0 0 clamp(32px, 5vw, 52px); padding: 18px 22px; border: 1px solid rgba(242,169,59,.30); border-radius: 16px;
  background: rgba(242,169,59,.06); font-size: .9rem; line-height: 1.6; color: var(--lp-text-2);
}

/* contents: sticky beside the text on wide screens */
body.lp-dark .mkt-doc__inner--legal .mkt-toc {
  position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto;
  margin: 0; padding: 0 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none;
}
body.lp-dark .mkt-doc__inner--legal .mkt-toc__h { margin: 0 0 14px; font: 500 .7rem/1 var(--lp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-muted); }
body.lp-dark .mkt-doc__inner--legal .mkt-toc a {
  display: block; padding: 8px 0 8px 16px; border-left: 1px solid var(--lp-line); color: var(--lp-text-2);
  font-size: .88rem; line-height: 1.35; transition: color .15s ease, border-color .15s ease;
}
body.lp-dark .mkt-doc__inner--legal .mkt-toc a:hover { color: var(--lp-text); border-left-color: var(--lp-line-2); }
body.lp-dark .mkt-doc__inner--legal .mkt-toc a.is-current { color: var(--lp-amber-2); border-left-color: var(--lp-amber); }

/* the text */
body.lp-dark .mkt-legal h2 {
  margin: 68px 0 18px; padding-top: 32px; border-top: 1px solid var(--lp-line);
  font-size: clamp(1.5rem, 1.25rem + .9vw, 1.95rem); line-height: 1.2; scroll-margin-top: 96px;
}
body.lp-dark .mkt-legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.lp-dark .mkt-legal h3 { margin: 34px 0 12px; font: 600 1.04rem/1.4 var(--lp-sans); letter-spacing: 0; color: var(--lp-text); }
body.lp-dark .mkt-legal p, body.lp-dark .mkt-legal li { font-size: 1.02rem; line-height: 1.78; }
body.lp-dark .mkt-legal p { margin: 0 0 18px; }
body.lp-dark .mkt-legal ul, body.lp-dark .mkt-legal ol { margin: 0 0 22px; padding-left: 1.3em; }
body.lp-dark .mkt-legal li { margin-bottom: 10px; padding-left: 4px; }
body.lp-dark .mkt-legal li::marker { color: var(--lp-amber); }
body.lp-dark .mkt-legal ol li::marker { font-family: var(--lp-mono); font-size: .85em; }
body.lp-dark .mkt-legal a { text-decoration: underline; text-decoration-color: rgba(255,207,122,.4); text-underline-offset: 3px; }
body.lp-dark .mkt-legal a:hover { text-decoration-color: var(--lp-amber-2); }

@media (max-width: 980px) {
  body.lp-dark .mkt-doc__inner.mkt-doc__inner--legal { display: block; max-width: 720px; }
  body.lp-dark .mkt-doc__inner--legal .mkt-toc {
    position: static; max-height: none; margin: 0 0 48px; padding: 20px 22px;
    border: 1px solid var(--lp-line); border-radius: 18px; background: var(--lp-ink-1);
  }
  body.lp-dark .mkt-doc__inner--legal .mkt-toc a { border-left: 0; padding: 7px 0; }
  body.lp-dark .mkt-doc__inner--legal .mkt-toc a.is-current { color: var(--lp-text-2); }
}

/* ---- about ------------------------------------------------------------------ */
.ab { overflow-x: clip; }
.ab-head { position: relative; isolation: isolate; padding-top: clamp(64px, 9vw, 132px); }
.ab-head__lamp {
  position: absolute; left: -10%; right: -10%; top: -180px; height: 860px; z-index: -1; pointer-events: none;
  background: radial-gradient(36% 40% at 50% 26%, rgba(242,169,59,.22), transparent 70%);
}
.ab .ab-head .hm-head { margin-bottom: 0; }
body.lp-dark .ab-h1 { max-width: 12ch; margin: 0 auto 30px; font-size: clamp(3rem, 1.9rem + 5.2vw, 6.4rem); line-height: .98; letter-spacing: -.028em; }
.ab .ab-stand { max-width: 30ch; margin: 0 auto; font: italic 400 clamp(1.3rem, 1.1rem + .9vw, 1.85rem)/1.45 var(--lp-serif); color: var(--lp-text); text-wrap: balance; }

.ab-essay { max-width: 680px; margin: clamp(56px, 8vw, 104px) auto 0; padding: 0 var(--lp-pad); }
.ab .ab-essay p { margin: 0 0 1.4em; font: 400 clamp(1.1rem, 1.02rem + .3vw, 1.25rem)/1.8 var(--lp-serif); color: var(--lp-text-2); }
.ab .ab-essay > p:first-child::first-letter {
  float: left; margin: .06em .1em 0 0; font-size: 3.7em; line-height: .86; color: var(--lp-amber-2);
}
.ab-pull {
  margin: 2.2em 0; padding: 34px 0; border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line);
  text-align: center; font: italic 400 clamp(1.55rem, 1.2rem + 1.6vw, 2.4rem)/1.3 var(--lp-serif); color: var(--lp-text); text-wrap: balance;
}
.ab-pull em { font-style: italic; color: var(--lp-amber-2); }
.ab .ab-essay p.ab-close { margin: 2em 0 0; text-align: center; font-style: italic; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.5; color: var(--lp-text); text-wrap: balance; }

.ab .lp-section { margin-top: clamp(88px, 11vw, 150px); }
.ab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-grid article { padding: 28px 24px; border: 1px solid var(--lp-line); border-radius: 22px; background: linear-gradient(180deg, var(--lp-ink-2), var(--lp-ink-1)); }
.ab-grid .icon { width: 26px; height: 26px; margin-bottom: 18px; color: var(--lp-amber); }
.ab .ab-grid h3 { margin: 0 0 8px; font: 500 1.2rem/1.3 var(--lp-serif); letter-spacing: -.005em; color: var(--lp-text); }
.ab .ab-grid p { font-size: .95rem; line-height: 1.62; color: var(--lp-text-2); }

@media (max-width: 980px) { .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ab-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  body.lp-dark .mkt-doc__inner--legal .mkt-toc a { transition: none; }
}
