/* DigiDonate v3 — the legal pages (privacy.html, terms.html, business-terms.html, charity-agreement.html,
   referral-terms.html), built by tools/build-legal.py. Loaded after dd-pages.css and sx.css. Everything is
   prefixed lg-. The pages are for reading: no motion of their own, a sticky "On this page" list beside the
   text on wide screens, and a clean print layout. */

.lg-head { padding-bottom: 56px; }
.lg-title { margin: 14px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; max-width: 900px; }
.lg-ver { margin-top: 18px; font-size: 15px; font-weight: 700; color: #6C2BD9; }
.lg-note { margin-top: 8px; font-size: 14px; line-height: 1.6; color: #8B8698; font-style: italic; max-width: 760px; }
.lg-body { padding-top: 56px; }
.lg-wrap { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 64px; align-items: start; }

/* on this page */
.lg-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; font-size: 14px; padding-bottom: 8px; }
.lg-toc summary { list-style: none; cursor: default; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #8B8698; margin-bottom: 12px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol, .lg-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lg-toc a { color: #56526A; line-height: 1.4; }
.lg-toc a:hover { color: #6C2BD9; }
.lg-toc-h { margin: 28px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8B8698; }

/* the document */
.lg-doc { font-size: 16px; line-height: 1.7; color: #2A2635; }
.lg-doc > * + * { margin-top: 16px; }
.lg-doc h2 { margin-top: 48px; padding-top: 4px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: #141219; scroll-margin-top: 100px; }
.lg-doc h2 + * { margin-top: 18px; }
.lg-doc p { margin-bottom: 0; }
.lg-doc .lg-cl { scroll-margin-top: 100px; }
.lg-doc .lg-n { display: inline-block; min-width: 2.6em; color: #6C2BD9; font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-doc ul, .lg-doc ol { margin-bottom: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.lg-doc ol li::marker { font-weight: 700; color: #6C2BD9; }
.lg-doc li::marker { color: #AE8AEA; }
.lg-doc strong { color: #141219; }
.lg-doc a { color: #6C2BD9; text-decoration: underline; text-underline-offset: 3px; }
.lg-doc blockquote { margin: 16px 0 0; padding: 16px 20px; border-left: 3px solid #AE8AEA; background: #F5F0FC; border-radius: 0 12px 12px 0; }
.lg-doc blockquote p + p { margin-top: 8px; }
.lg-short { padding: 22px 24px; border-radius: 18px; background: #F5F0FC; border: 1px solid #DFD0F7; }
.lg-short > * + * { margin-top: 12px; }
.lg-short p:first-child strong:first-child { color: #6C2BD9; }
.lg-table { overflow-x: auto; border: 1px solid #EAE6F1; border-radius: 14px; }
.lg-doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.lg-doc th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #56526A;
  background: #FAFAF8; }
.lg-doc th, .lg-doc td { padding: 12px 16px; border-bottom: 1px solid #EFECF4; vertical-align: top; }
.lg-doc tbody tr:last-child td { border-bottom: 0; }
.lg-doc td:first-child { font-weight: 600; color: #141219; min-width: 150px; }

@media (max-width: 1080px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lg-toc { position: static; max-height: none; padding: 18px 20px; border: 1px solid #EAE6F1; border-radius: 16px; background: #FAFAF8; }
  .lg-toc summary { cursor: pointer; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; }
  .lg-toc summary::after { content: "+"; font-size: 18px; color: #6C2BD9; }
  .lg-toc details[open] summary { margin-bottom: 12px; }
  .lg-toc details[open] summary::after { content: "–"; }
}
@media (max-width: 700px) {
  .lg-head { padding-bottom: 40px; }
  .lg-body { padding-top: 40px; }
  .lg-doc { font-size: 15.5px; }
  .lg-doc h2 { margin-top: 40px; font-size: 22px; }
  .lg-doc .lg-n { min-width: 2.3em; }
  .lg-doc th, .lg-doc td { padding: 10px 12px; }
}
@media print {
  .dp-header, .dp-footer, .lg-toc, .dp-skip { display: none !important; }
  .lg-wrap { display: block; }
  .lg-head, .lg-body { padding: 0; background: none; }
  .lg-doc { font-size: 11pt; color: #000; }
  .lg-doc a { color: inherit; text-decoration: none; }
  .lg-short, .lg-doc blockquote { background: none; }
}
