/* Quant Leaf Labs terms page */
.qll-t-hero, .qll-t-body { font-family: 'Jost', sans-serif; }
.qll-t-hero { position: relative; overflow: hidden; background: #2F4659; }
.qll-t-hin { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 64px 40px 96px; }
.qll-t-hero .qll-k { color: #77F2F2; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.qll-t-hero h1 { margin: 12px 0 10px; padding: 0; font-family: 'Jost', sans-serif; font-size: 54px; line-height: 1.05; font-weight: 600; color: #E6FBFB; }
.qll-t-sub { margin: 0 0 4px; padding: 0; font-size: 18px; color: #B8C7D3; } .qll-t-eff { margin: 0; padding: 0; font-size: 15px; color: #77F2F2; }
.qll-t-trace { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 90px; }
.qll-t-trace path { fill: none; stroke: #77F2F2; stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.qll-t-strip { position: fixed; left: 0; right: 0; top: 0; height: 34px; z-index: 9990; pointer-events: none; background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #E6EAEE; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s; }
.qll-t-strip.show { opacity: 1; transform: none; }
.qll-t-strip svg { display: block; width: 100%; height: 34px; }
.qll-t-strip path { fill: none; stroke-width: 1.6; stroke-linejoin: round; } .qll-t-strip .ghost { stroke: #B8C7D3; } .qll-t-strip .live { stroke: #2F4659; stroke-width: 2; }
.qll-t-strip i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #77F2F2; box-shadow: 0 0 0 2px #2F4659; left: 0; top: 0; }
html[data-theme="dark"] .qll-t-strip { background: rgba(27,40,56,0.96); border-bottom-color: #3A5568; }
html[data-theme="dark"] .qll-t-strip .ghost { stroke: #3A5568; } html[data-theme="dark"] .qll-t-strip .live { stroke: #77F2F2; }
html[data-theme="dark"] .qll-t-strip i { background: #E6FBFB; box-shadow: 0 0 0 2px #77F2F2; }
.qll-t-body { background: #FFFFFF; padding: 56px 24px 90px; }
.qll-t-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 270px 1fr; gap: 56px; align-items: start; }
.qll-t-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow: auto; }
.qll-t-toc summary { list-style: none; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #36708F; font-weight: 500; margin-bottom: 10px; cursor: default; }
.qll-t-toc summary::-webkit-details-marker { display: none; }
.qll-t-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #E6EAEE; }
.qll-t-toc a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: #5B6664; text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.qll-t-toc a span { min-width: 18px; color: #5B6664; font-variant-numeric: tabular-nums; }
.qll-t-toc a:hover { color: #2F4659; } .qll-t-toc a.on { color: #2F4659; font-weight: 600; border-left-color: #3F7FA0; } .qll-t-toc a.on span { color: #36708F; }
.qll-t-doc { max-width: 760px; color: #14211F; font-size: 16.5px; line-height: 1.75; }
.qll-t-doc p { margin: 0 0 14px; padding: 0; }
.qll-t-intro { font-size: 18px; color: #2F4659; padding-bottom: 8px; }
.qll-t-sec { scroll-margin-top: 110px; padding-top: 30px; margin-top: 18px; border-top: 1px solid #E6EAEE; }
.qll-t-sec h2 { display: flex; gap: 14px; align-items: baseline; margin: 0 0 16px; padding: 0; font-family: 'Jost', sans-serif; font-size: 26px; line-height: 1.25; font-weight: 600; color: #2F4659; }
.qll-t-sec h2 span { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #E6FBFB; color: #2F4659; font-size: 17px; }
.qll-t-doc strong { color: #2F4659; font-weight: 600; }
.qll-t-doc ul { margin: 0 0 16px; padding-left: 22px; } .qll-t-doc li { margin-bottom: 6px; }
.qll-t-doc a { color: #2F4659; text-decoration: underline; text-underline-offset: 2px; }
.qll-t-doc table { width: 100% !important; border-collapse: separate; border-spacing: 0; margin: 4px 0 18px; border: 1px solid #D9DDE3; border-radius: 14px; overflow: hidden; }
.qll-t-doc td { width: auto !important; padding: 12px 16px; vertical-align: top; border-top: 1px solid #E6EAEE; font-size: 15.5px; line-height: 1.6; }
.qll-t-doc tr:first-child td { border-top: 0; } .qll-t-doc td:first-child { width: 170px !important; background: #F6F8FA; }
.qll-t-end { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid #E6EAEE; color: #5B6664; }
@media (max-width: 980px) {
  .qll-t-grid { grid-template-columns: 1fr; gap: 24px; }
  .qll-t-toc { position: static; max-height: none; background: #F6F8FA; border: 1px solid #D9DDE3; border-radius: 14px; padding: 14px 18px; }
  .qll-t-toc summary { cursor: pointer; margin: 0; } .qll-t-toc details[open] summary { margin-bottom: 10px; }
  .qll-t-hin { padding: 48px 20px 84px; } .qll-t-hero h1 { font-size: 40px; }
}
@media (max-width: 600px) {
  .qll-t-doc table, .qll-t-doc tbody, .qll-t-doc tr, .qll-t-doc td { display: block; width: auto !important; }
  .qll-t-doc td:first-child { width: auto !important; padding-bottom: 4px; border-top: 1px solid #E6EAEE; }
  .qll-t-doc td + td { border-top: 0; padding-top: 0; }
  .qll-t-sec h2 { font-size: 22px; } .qll-t-doc { font-size: 16px; }
}
/* dark */
html[data-theme="light"] .qll-t-hero { background: #F6F8FA; } html[data-theme="light"] .qll-t-hero h1 { color: #2F4659; }
html[data-theme="light"] .qll-t-sub { color: #5B6664; } html[data-theme="light"] .qll-t-eff, html[data-theme="light"] .qll-t-hero .qll-k { color: #36708F; }
html[data-theme="light"] .qll-t-trace path { stroke: #3F7FA0; }
html[data-theme="dark"] .qll-t-body { background: #1B2838; }
html[data-theme="dark"] .qll-t-doc { color: #D6E0E8; } html[data-theme="dark"] .qll-t-intro, html[data-theme="dark"] .qll-t-doc strong, html[data-theme="dark"] .qll-t-sec h2 { color: #E6FBFB; }
html[data-theme="dark"] .qll-t-sec, html[data-theme="dark"] .qll-t-end, html[data-theme="dark"] .qll-t-doc td { border-color: #3A5568; }
html[data-theme="dark"] .qll-t-doc table { border-color: #3A5568; } html[data-theme="dark"] .qll-t-doc td:first-child { background: #2F4659; }
html[data-theme="dark"] .qll-t-sec h2 span { background: #2F4659; color: #77F2F2; }
html[data-theme="dark"] .qll-t-toc ol { border-color: #3A5568; } html[data-theme="dark"] .qll-t-toc a, html[data-theme="dark"] .qll-t-toc a span { color: #B8C7D3; }
html[data-theme="dark"] .qll-t-toc a.on, html[data-theme="dark"] .qll-t-toc a:hover { color: #E6FBFB; } html[data-theme="dark"] .qll-t-toc a.on { border-left-color: #77F2F2; }
html[data-theme="dark"] .qll-t-toc summary, html[data-theme="dark"] .qll-t-toc a.on span { color: #77F2F2; }
html[data-theme="dark"] .qll-t-doc a { color: #77F2F2; } html[data-theme="dark"] .qll-t-end { color: #B8C7D3; }
@media (max-width: 980px) { html[data-theme="dark"] .qll-t-toc { background: #2F4659; border-color: #3A5568; } }
