/* xGrowth legal pages (Privacy Policy, Publisher Terms and Conditions). Scoped to .lg-* wrappers and to the two
   literal legal fragments inside .lg-doc. Loaded after core.css; core.css, native-ui and theme files are unchanged.
   Reading surface: no motion of its own. The legal text is always visible, with or without JavaScript.

   The Privacy fragment is production WordPress content without <p> elements: paragraphs are separated by blank
   lines and the address uses single line breaks. white-space:pre-line renders those breaks exactly as written,
   without changing a byte of the fragment. Its rhythm is calibrated on a fixed line height (--lh): one blank line
   is one paragraph gap, and headings pull up by the blank line that follows them. Lists switch back to normal
   white-space so the indentation between <li> elements is not rendered. */

.lg-body{--lh:30px;--fs:18px;--measure:44rem}
.lg-page{padding:clamp(112px,14vh,150px) 0 clamp(72px,9vw,120px);position:relative}
[data-theme=dark] .lg-page{isolation:isolate;overflow:hidden}
[data-theme=dark] .lg-page::before{content:"";position:absolute;right:-14vw;top:-22vw;width:52vw;height:52vw;border-radius:50%;z-index:-1;pointer-events:none;background:radial-gradient(circle at 50% 55%,rgba(3,67,239,.42) 0%,rgba(0,27,99,.34) 49.76%,rgba(0,0,0,0) 100%);filter:blur(52px)}

.lg-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,var(--measure)) minmax(0,1fr);gap:clamp(32px,4vw,64px);margin-top:clamp(36px,5vw,64px);align-items:start}
.lg-docs{position:sticky;top:110px}
.lg-docs .chap{margin-bottom:16px}
.lg-docs ul{list-style:none;display:grid;gap:10px;font-size:14px;font-weight:600}
.lg-docs a{color:var(--mute);text-decoration:none;display:inline-block;padding:2px 0}
.lg-docs a:hover{color:var(--ink)}
.lg-docs a[aria-current]{color:var(--ink);text-decoration:underline;text-decoration-color:var(--acc);text-decoration-thickness:2px;text-underline-offset:6px}

/* document column */
.lg-doc{min-width:0;font-size:var(--fs);line-height:var(--lh);color:var(--ink2);overflow-wrap:break-word}
.lg-doc h1{font-size:clamp(40px,5.4vw,76px);line-height:.98;letter-spacing:-.05em;font-weight:800;color:var(--ink);margin:0 0 clamp(28px,3vw,40px);max-width:14ch;text-wrap:balance}
.lg-doc h2{font-size:clamp(23px,2.1vw,30px);line-height:1.15;letter-spacing:-.03em;font-weight:800;color:var(--ink);margin-top:calc(var(--lh)*2);padding-top:22px;border-top:1px solid var(--line2);scroll-margin-top:100px}
.lg-doc h3{font-size:clamp(19px,1.5vw,21px);line-height:1.25;letter-spacing:-.015em;font-weight:700;color:var(--ink);margin-top:calc(var(--lh)*.9);scroll-margin-top:100px}
.lg-doc a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--acc);text-decoration-thickness:2px;text-underline-offset:4px;overflow-wrap:anywhere}
.lg-doc a:hover{text-decoration-color:var(--ink)}
.lg-doc strong{color:var(--ink);font-weight:700}
.lg-doc ul{list-style:disc;padding-left:1.35em;margin-top:8px}
.lg-doc li{padding-left:.25em}
.lg-doc li+li{margin-top:6px}
.lg-doc li::marker{color:var(--mute)}

/* Privacy fragment (bare text with line breaks) */
.lg-doc .xgrowth-privacy-policy{white-space:pre-line;margin-top:calc(var(--lh)*-2)}
.lg-doc .xgrowth-privacy-policy ul{white-space:normal}
.lg-doc .xgrowth-privacy-policy h2,.lg-doc .xgrowth-privacy-policy h3{margin-bottom:calc(14px - var(--lh))}
.lg-doc--privacy-policy>h1{margin-bottom:clamp(28px,3vw,40px)}

/* Publisher Terms fragment (paragraph markup) */
.lg-doc .xg-terms p+p{margin-top:calc(var(--lh)*.6)}
.lg-doc .xg-terms h2+p{margin-top:14px}
.lg-doc .xg-terms h2{margin-bottom:0}
.lg-doc .xg-terms .xg-terms-version{font-size:15px;font-weight:700;letter-spacing:.01em;color:var(--mute);margin-bottom:calc(var(--lh)*.8)}

.lg-top{margin-top:calc(var(--lh)*2);padding-top:22px;border-top:1px solid var(--line2);font-size:14px}
.lg-top a{font-weight:700}

/* footer: current legal page marker */
footer nav a[aria-current]{color:#F3F8FC}

@media (max-width:1100px){
  .lg-grid{grid-template-columns:minmax(150px,200px) minmax(0,var(--measure))}
}
@media (max-width:820px){
  .lg-body{--lh:28px;--fs:17px}
  .lg-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .lg-docs{position:static;border-bottom:1px solid var(--line2);padding-bottom:20px}
  .lg-docs ul{display:flex;flex-wrap:wrap;gap:8px 22px}
}
@media (max-width:420px){
  .lg-body{--lh:27px;--fs:16.5px}
  .lg-doc h1{font-size:clamp(34px,10.5vw,44px)}
}
@media print{
  .lg-docs,.lg-top{display:none}
  .lg-grid{display:block}
  .lg-page{padding-top:0}
}
