/* Barmajna Legal & Trust Center styles (source: tools/legal-pages.css) */
.bm-legal-lang { display: none; }
html[lang="en"] .bm-legal-lang[data-legal-lang="en"] { display: block; }
html[lang="ar"] .bm-legal-lang[data-legal-lang="ar"] { display: block; }
html[lang="tr"] .bm-legal-lang[data-legal-lang="tr"] { display: block; }
html:not([lang]) .bm-legal-lang[data-legal-lang="en"] { display: block; }

.bm-legal-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 18px; background: #161d2a; border-inline-start: 4px solid #1a86ff; margin-bottom: 26px; font-size: 13px; color: #c9d3e0; }
.bm-legal-meta strong { color: #f3f7fc; }
.bm-legal-meta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(26,134,255,.15); color: #7db6ff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bm-legal-notice { background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%); box-shadow: 0 3px 10px rgba(8,12,20,.28); padding: 14px 18px; margin-bottom: 24px; font-size: 13px; line-height: 1.65; color: #c9d3e0; border-radius: 8px; }
.bm-legal-notice strong { color: #f3f7fc; }

.bm-legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.bm-legal-toc { position: sticky; top: 96px; background: #161d2a; padding: 20px 18px; border-radius: 10px; box-shadow: 0 6px 20px rgba(8,12,20,.32); max-height: calc(100vh - 120px); overflow-y: auto; }
.bm-legal-toc h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7db6ff; }
.bm-legal-toc ul { list-style: none; margin: 0; padding: 0; }
.bm-legal-toc li { margin-bottom: 6px; }
.bm-legal-toc a { display: block; padding: 5px 8px; border-radius: 6px; font-size: 13px; line-height: 1.45; color: #9fb0c8; text-decoration: none; transition: background .16s ease, color .16s ease; }
.bm-legal-toc a:hover { background: rgba(26,134,255,.12); color: #f3f7fc; }
.bm-legal-toc-sep { height: 1px; background: rgba(255,255,255,.07); margin: 14px 0; }
.bm-legal-toc-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #7db6ff !important; }

.bm-legal-body { min-width: 0; }
.bm-legal-sec { background: linear-gradient(159deg, #20293a 0%, #171f2d 100%); box-shadow: 0 6px 20px rgba(8,12,20,.28); padding: 24px 26px; border-radius: 10px; margin-bottom: 18px; scroll-margin-top: 96px; }
.bm-legal-sec h3 { margin: 0 0 12px; font-size: 18px; color: #f3f7fc !important; line-height: 1.4; }
.bm-legal-sec p { margin: 0 0 12px; color: #c9d3e0 !important; font-size: 14.5px; line-height: 1.75; }
.bm-legal-sec p:last-child { margin-bottom: 0; }
.bm-legal-sec ul, .bm-legal-sec ol { margin: 0 0 12px; padding-inline-start: 22px; color: #c9d3e0; font-size: 14.5px; line-height: 1.75; }
.bm-legal-sec li { margin-bottom: 6px; }
.bm-legal-sec a { color: #7db6ff; text-decoration: underline; text-underline-offset: 3px; }
.bm-legal-sec code { background: #0f1520; color: #7db6ff; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; direction: ltr; unicode-bidi: isolate; }

.bm-legal-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 34px; }
.bm-legal-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%); box-shadow: 0 6px 20px rgba(8,12,20,.3); padding: 22px 24px; border-radius: 10px; text-decoration: none !important; border: 1px solid rgba(255,255,255,.05); transition: transform .2s ease, border-color .2s ease; }
.bm-legal-card:hover { transform: translateY(-2px); border-color: rgba(26,134,255,.45); }
.bm-legal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bm-legal-card h4 { margin: 0; font-size: 16px; color: #f3f7fc !important; }
.bm-legal-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #9fb0c8 !important; }
.bm-legal-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #7db6ff; font-weight: 700; }

.bm-legal-addenda-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bm-legal-addenda-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; background: #121925; color: #dfe7f2 !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; border: 1px solid rgba(255,255,255,.06); transition: border-color .16s ease, color .16s ease; }
.bm-legal-addenda-chip:hover { border-color: #1a86ff; color: #7db6ff !important; }

.bm-drawer-legal { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; font-size: 12px; }
.bm-drawer-legal a { color: #9fb0c8; text-decoration: none; transition: color .15s ease; }
.bm-drawer-legal a:hover { color: #7db6ff; }

@media (max-width: 991px) {
  .bm-legal-layout { grid-template-columns: 1fr; }
  .bm-legal-toc { position: static; max-height: none; }
}
@media (max-width: 767px) {
  .bm-legal-hub-grid { grid-template-columns: 1fr; }
  .bm-legal-sec { padding: 18px; }
}
@media print {
  .qrt-top-bar, .qrt-left-bar, .qrt-preloader, .qrt-cursor, .bm-legal-toc, .qrt-call-to-action { display: none !important; }
  body, .qrt-app, .qrt-dynamic-content, .qrt-content, .bm-legal-sec { background: #ffffff !important; color: #111827 !important; box-shadow: none !important; }
  .bm-legal-sec h3, .bm-legal-sec p, .bm-legal-sec li { color: #111827 !important; }
}
