/* DewwBit Capital — shared visual layer for the DewwBit Capital legal pages. */
.legal-page { background: #f5f7fb; }
.legal-page .breadcrumbs a { color: #8b95a7; }
.legal-page .breadcrumbs a:hover { color: var(--blue); }
.legal-page .nav-link { text-decoration: none; }
.legal-status-box { margin-bottom: 15px; }
.legal-status-box .fund-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-status-box strong { font-size: 15px; }
.legal-status-box .mini-progress span { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.legal-status-dot { background: #f5b544; box-shadow: 0 0 0 4px rgba(245,181,68,.12); }
.legal-search { width: min(290px, 28vw); }
.legal-search svg { flex: 0 0 auto; }
.legal-search input { min-width: 0; }
.legal-search kbd { font-size: 9px; }
.print-button { flex: 0 0 auto; }
.print-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-avatar { display: grid; text-decoration: none; }
.legal-main { max-width: 1540px; }
.legal-hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; padding: 28px 30px; margin-bottom: 15px; position: relative; overflow: hidden; background: linear-gradient(115deg, #fff 0%, #fff 64%, #f0f6ff 100%); }
.legal-hero::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(37,99,235,.09); border-radius: 50%; right: 120px; top: -190px; box-shadow: 0 0 0 28px rgba(37,99,235,.025), 0 0 0 58px rgba(37,99,235,.018); pointer-events: none; }
.legal-hero-copy { min-width: 0; position: relative; z-index: 1; }
.legal-hero .eyebrow { font-size: 10px; }
.legal-hero h1 { max-width: 900px; margin: 0 0 13px; font-size: clamp(27px, 3vw, 39px); line-height: 1.15; letter-spacing: -1.35px; }
.legal-subtitle { max-width: 850px; margin: 0; color: #667085; font-size: 13px; line-height: 1.85; }
.legal-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin-top: 20px; }
.doc-code { padding: 5px 8px; border: 1px solid #dce7fb; border-radius: 7px; color: #2456a6; background: #f4f8ff; font-size: 9px; font-weight: 800; letter-spacing: .25px; }
.draft-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f1dfb8; border-radius: 999px; padding: 5px 9px; background: #fff9ec; color: #926821; font-size: 9px; font-weight: 750; }
.draft-pill i { width: 5px; height: 5px; border-radius: 50%; background: #e0a52e; }
.updated-meta { color: #98a2b3; font-size: 10px; }
.legal-hero-mark { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 7px 0 7px 25px; border-left: 1px solid #dce7f6; position: relative; z-index: 1; }
.legal-hero-mark > span { color: #6f8bb7; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.legal-hero-mark > strong { margin: 0; color: #dbeafe; font-size: clamp(48px, 5vw, 69px); font-weight: 850; line-height: 1; letter-spacing: -4px; text-shadow: 1px 1px 0 #b8d5fc; }
.legal-hero-mark > small { margin-top: 3px; color: #2563eb; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.hero-mark-line { width: 46px; height: 3px; margin: 15px 0 11px; border-radius: 99px; background: linear-gradient(90deg, #38bdf8, #2563eb); }
.legal-hero-mark p { margin: 0; color: #73829b; font-size: 10px; line-height: 1.6; }
.legal-callout { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #d8e6fd; border-radius: 12px; background: #f5f9ff; color: #566782; font-size: 11px; line-height: 1.8; }
.legal-callout > svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: #2563eb; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-callout strong { color: #214f9b; }
.legal-callout.warning { border-color: #f1dfb8; background: #fffaf0; color: #806c45; }
.legal-callout.warning > svg { stroke: #b7791f; }
.legal-callout.warning strong { color: #805a17; }
.document-warning { margin-bottom: 15px; }
.document-warning > div { display: flex; flex-direction: column; gap: 2px; }
.legal-summary-row { display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: 12px; margin-bottom: 19px; }
.summary-chip { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.summary-chip-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; color: #2563eb; background: #edf4ff; }
.summary-chip-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.summary-chip span:last-child { min-width: 0; }
.summary-chip small { display: block; margin-bottom: 2px; color: #98a2b3; font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.summary-chip strong { display: block; color: #344054; font-size: 10px; line-height: 1.5; }
.legal-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); align-items: start; gap: 17px; }
.legal-toc { position: sticky; top: 85px; padding: 17px 13px 13px; max-height: calc(100vh - 102px); overflow-y: auto; }
.toc-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 5px 12px; border-bottom: 1px solid #edf0f6; }
.toc-title span { color: #1f2937; font-size: 12px; font-weight: 800; }
.toc-title small { color: #98a2b3; font-size: 9px; }
#tocList { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; }
.toc-link { display: flex; align-items: flex-start; gap: 8px; padding: 8px 7px; border-radius: 8px; color: #667085; font-size: 10px; line-height: 1.5; transition: background .15s ease, color .15s ease; }
.toc-link > span { display: inline-grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 6px; color: #7185a7; background: #f2f5fa; font-size: 8px; font-weight: 800; }
.toc-link:hover { color: #1d4ed8; background: #f4f8ff; }
.toc-link.active { color: #1d4ed8; background: #edf4ff; font-weight: 750; }
.toc-link.active > span { color: #fff; background: #2563eb; }
.toc-link[hidden] { display: none; }
.toc-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px 9px 3px; border-top: 1px solid #edf0f6; }
.toc-footer-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; color: #2563eb; background: #edf4ff; }
.toc-footer-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.toc-footer p { margin: 0; }
.toc-footer strong { display: block; margin-bottom: 4px; color: #475467; font-size: 9px; }
.toc-footer small { display: block; color: #8b95a7; font-size: 9px; line-height: 1.6; }
.legal-document { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.legal-article { padding: 22px 24px 24px; scroll-margin-top: 87px; }
.article-head { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid #eef1f6; }
.article-index { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; color: #2563eb; background: #edf4ff; font-size: 12px; font-weight: 850; }
.article-eyebrow { margin: 1px 0 4px; color: #8ca0bd; font-size: 8px; font-weight: 850; letter-spacing: 1.2px; }
.article-head h2 { color: #182230; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.4; letter-spacing: -.35px; }
.article-body { padding-top: 16px; color: #536174; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 13px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h3 { margin: 19px 0 9px; color: #233247; font-size: 12px; }
.article-body ul, .article-body ol { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 15px; padding-left: 22px; }
.article-body li { padding-left: 3px; }
.article-body li::marker { color: #4e86ec; font-weight: 800; }
.article-body strong { color: #344054; }
.article-body .legal-callout { margin: 15px 0; }
.parameter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 15px 0; }
.parameter-card { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 13px; border: 1px solid #e3ebf8; border-radius: 11px; background: linear-gradient(135deg, #fff, #f7faff); }
.parameter-card span { color: #71829b; font-size: 9px; font-weight: 750; }
.parameter-card strong { color: #1d4ed8; font-size: 17px; letter-spacing: -.4px; line-height: 1.3; }
.parameter-card small { color: #98a2b3; font-size: 9px; line-height: 1.5; }
.formula-box { margin: 12px 0 15px; padding: 15px; border: 1px solid #dce8fb; border-radius: 12px; background: #f5f9ff; }
.formula-box code { display: block; color: #1e40af; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 750; line-height: 1.7; overflow-wrap: anywhere; }
.formula-box p { margin: 9px 0 0 !important; color: #71829b; font-size: 10px; line-height: 1.75; }
.score-table-wrap { width: 100%; overflow-x: auto; margin: 12px 0 15px; border: 1px solid #e5eaf2; border-radius: 10px; }
.score-table { width: 100%; min-width: 465px; border-collapse: collapse; background: #fff; font-size: 10px; line-height: 1.65; }
.score-table th { padding: 10px 11px; color: #667085; background: #f6f8fc; text-align: left; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
.score-table td { padding: 10px 11px; border-top: 1px solid #edf0f6; color: #59677b; vertical-align: top; }
.score-table td:nth-child(2) { color: #1d4ed8; font-weight: 800; white-space: nowrap; }
.search-status { display: none; padding: 9px 12px; border: 1px solid #dce8fb; border-radius: 9px; color: #315b9d; background: #f5f9ff; font-size: 10px; }
.search-status.visible { display: block; }
.legal-article[hidden] { display: none; }
.related-section { margin-top: 27px; }
.related-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.related-heading .eyebrow { margin-bottom: 5px; }
.related-heading h2 { margin-bottom: 5px; color: #182230; font-size: 19px; }
.related-heading p { margin: 0; color: #8b95a7; font-size: 11px; }
.related-heading .btn { flex: 0 0 auto; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-doc { display: flex; align-items: flex-start; gap: 12px; padding: 16px; transition: border-color .15s ease, transform .15s ease; }
.related-doc:hover { border-color: #c3d6fa; transform: translateY(-1px); }
.related-number { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: #2563eb; background: #edf4ff; font-size: 11px; font-weight: 850; }
.related-doc > span:nth-child(2) { flex: 1; min-width: 0; }
.related-doc small { display: block; margin-bottom: 4px; color: #9aa7bb; font-size: 8px; font-weight: 850; letter-spacing: .9px; }
.related-doc strong { display: block; margin-bottom: 5px; color: #344054; font-size: 12px; line-height: 1.45; }
.related-doc em { display: block; color: #7c8799; font-size: 10px; font-style: normal; line-height: 1.6; }
.related-doc > svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 7px; fill: none; stroke: #93a1b5; stroke-width: 1.8; }
.legal-footer { border-top: 1px solid #e8edf5; margin-top: 28px; }
.legal-footer .footer-link { margin-left: auto; cursor: pointer; }
@media (max-width: 1250px) {
  .legal-hero { grid-template-columns: minmax(0, 1fr) 190px; padding: 24px; }
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 13px; }
  .legal-toc { padding-left: 10px; padding-right: 10px; }
  .legal-article { padding: 20px; }
  .legal-summary-row { gap: 9px; }
}
@media (max-width: 980px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: relative; top: auto; max-height: none; }
  #tocList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-footer { display: none; }
  .legal-summary-row { grid-template-columns: 1fr; }
  .summary-chip strong { font-size: 11px; }
}
@media (max-width: 700px) {
  .legal-search { width: 34px; height: 34px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .legal-search input, .legal-search kbd { display: none; }
  .legal-hero { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 20px; }
  .legal-hero h1 { font-size: 26px; letter-spacing: -.8px; }
  .legal-subtitle { font-size: 12px; }
  .legal-hero-mark { display: none; }
  .legal-meta-row { gap: 7px; }
  .updated-meta { width: 100%; }
  .legal-callout { padding: 12px; font-size: 10px; }
  .legal-summary-row { gap: 7px; }
  #tocList { grid-template-columns: minmax(0, 1fr); }
  .legal-article { padding: 16px; }
  .article-head { gap: 10px; padding-bottom: 13px; }
  .article-index { flex-basis: 32px; height: 32px; border-radius: 9px; }
  .article-body { padding-top: 13px; font-size: 11px; line-height: 1.85; }
  .parameter-grid { grid-template-columns: minmax(0, 1fr); }
  .parameter-card { padding: 11px 12px; }
  .parameter-card strong { font-size: 16px; }
  .related-heading { align-items: flex-start; flex-direction: column; }
  .related-heading .btn { width: 100%; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-footer { gap: 8px 12px; }
  .legal-footer .footer-link { width: 100%; margin-left: 0; text-align: left; }
}
@media print {
  @page { margin: 14mm 12mm; size: auto; }
  html { scroll-behavior: auto; }
  body, .legal-page { background: #fff !important; color: #111827 !important; font-size: 10pt; }
  .sidebar, .topbar, .legal-toc, .legal-summary-row, .related-section, .legal-footer .footer-link, .legal-hero-mark { display: none !important; }
  .workspace { margin: 0 !important; }
  .main-content, .legal-main { max-width: none; margin: 0; padding: 0; }
  .legal-hero { display: block; margin: 0 0 12px; padding: 0 0 12px; box-shadow: none; border: 0; border-bottom: 2px solid #2563eb; background: #fff; }
  .legal-hero h1 { font-size: 22pt; }
  .legal-hero::after { display: none; }
  .document-warning { break-inside: avoid; }
  .legal-layout { display: block; }
  .legal-document { gap: 9px; }
  .legal-article { break-inside: auto; page-break-inside: auto; padding: 14px 0; margin: 0; border: 0; border-bottom: 1px solid #d9e0eb; border-radius: 0; box-shadow: none; }
  .article-head { break-after: avoid; }
  .article-body { font-size: 9pt; color: #253246; }
  .parameter-card, .formula-box, .legal-callout { break-inside: avoid; }
  .score-table-wrap { overflow: visible; }
  .score-table { min-width: 0; }
  .search-status { display: none !important; }
  .legal-article[hidden] { display: block !important; }
  a { text-decoration: none; color: inherit; }
  .page-footer { display: flex !important; }
}

/* Four-document navigation and related document cards. */
.related-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
