/* ==========================================================
   BongoApps — তথ্য/পলিসি পেজ (About, Guide, Terms, Privacy, Disclaimer, Refund)
   ========================================================== */
body.bongoapps-legal-page { overflow-x: hidden; overflow-x: clip; }
.bongoapps-legal-page .site-content { display: block !important; }
.bongoapps-legal-page .site-footer, .bongoapps-legal-page #colophon { margin-top: 0 !important; }

.ba-page {
    width: 100vw; margin-left: calc(50% - 50vw);
    background: var(--ba-page-bg); color: var(--ba-text-main); line-height: 1.85;
}
.ba-page *, .ba-page *::before, .ba-page *::after { box-sizing: border-box; }
.ba-page h1, .ba-page h2, .ba-page h3 { color: var(--ba-text-main) !important; margin: 0; line-height: 1.35; }
.ba-page p { margin: 0 0 14px; color: #b6c2d4; }
.ba-page a { color: var(--ba-accent); text-decoration: none; border-bottom: 1px dotted rgba(46,230,166,.5); }
.ba-page a:hover { color: #7af0c6; border-bottom-style: solid; }
.ba-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* Hero */
.ba-page-hero {
    position: relative; overflow: hidden; text-align: center; padding: 70px 0 56px;
    background: radial-gradient(900px 380px at 80% -20%, rgba(46,230,166,.13), transparent 60%),
                radial-gradient(700px 360px at 0% 120%, rgba(246,162,58,.09), transparent 60%), var(--ba-page-bg);
    border-bottom: 1px solid var(--ba-border);
}
.ba-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.ba-orb-1 { width: 260px; height: 260px; background: rgba(46,230,166,.2); top: -90px; right: 8%; }
.ba-orb-2 { width: 220px; height: 220px; background: rgba(246,162,58,.14); bottom: -90px; left: 6%; }
.ba-page-hero .ba-wrap { position: relative; z-index: 2; }
.ba-crumb { font-size: 14px; color: var(--ba-text-muted); margin-bottom: 22px; }
.ba-crumb a { color: var(--ba-text-muted); border: 0; }
.ba-crumb a:hover { color: var(--ba-accent); }
.ba-crumb span { margin: 0 6px; }
.ba-page-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px;
    border-radius: 22px; font-size: 34px; margin-bottom: 18px;
    background: rgba(46,230,166,.1); border: 1px solid rgba(46,230,166,.35);
    box-shadow: 0 12px 30px rgba(46,230,166,.15);
}
.ba-page-hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; margin-bottom: 14px; }
.ba-page-lead { max-width: 720px; margin: 0 auto 18px !important; font-size: 17.5px; }
.ba-page-meta span {
    display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    color: var(--ba-accent-2); background: rgba(246,162,58,.1); border: 1px solid rgba(246,162,58,.28);
}

/* Layout */
.ba-page-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 64px; align-items: start; }
.ba-page-grid.ba-no-toc { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.ba-toc {
    position: sticky; top: 90px; padding: 20px 20px 14px; border-radius: 18px;
    background: var(--ba-card-bg); border: 1px solid var(--ba-border);
}
.ba-toc b { display: block; margin-bottom: 10px; font-size: 15px; color: #fff; }
.ba-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.ba-toc li { counter-increment: toc; margin: 0; }
.ba-toc li a {
    display: block; padding: 7px 0; font-size: 14.5px; color: var(--ba-text-muted); border: 0; line-height: 1.5;
}
.ba-toc li a::before { content: counter(toc, bengali) "। "; color: var(--ba-accent); font-weight: 700; }
.ba-toc li a:hover { color: #fff; }

/* Sections */
.ba-doc { min-width: 0; }
.ba-sec {
    padding: 28px 30px; margin-bottom: 20px; border-radius: 20px; scroll-margin-top: 90px;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)), var(--ba-card-bg);
    border: 1px solid var(--ba-border);
}
.ba-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.ba-sec-n {
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px;
    border-radius: 12px; font-size: 17px; font-weight: 700; color: #04251a;
    background: linear-gradient(135deg, var(--ba-accent), var(--ba-accent-2));
}
.ba-sec > p:last-child { margin-bottom: 0; }
.ba-list { margin: 6px 0 0; padding: 0; list-style: none; }
.ba-list li { position: relative; padding: 6px 0 6px 28px; color: #b6c2d4; }
.ba-list li::before { content: "✔"; position: absolute; left: 0; color: var(--ba-accent); font-weight: 700; }

.ba-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ba-mini { padding: 18px 18px 16px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--ba-border); }
.ba-mini-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 13px; font-size: 22px; margin-bottom: 10px; background: rgba(46,230,166,.1); }
.ba-mini h3 { font-size: 17px; margin-bottom: 4px; }
.ba-mini p { font-size: 15px; margin: 0; }

.ba-steps-list { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.ba-steps-list li { counter-increment: st; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--ba-border); }
.ba-steps-list li:last-child { border-bottom: 0; }
.ba-steps-list li::before {
    content: counter(st, bengali); flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #04251a;
    background: linear-gradient(135deg, var(--ba-accent), var(--ba-accent-2));
}
.ba-steps-list b { display: block; font-size: 17px; color: #fff; margin-bottom: 2px; }
.ba-steps-list p { margin: 0; font-size: 15.5px; }

.ba-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-dodont.ba-one { grid-template-columns: 1fr; }
.ba-do, .ba-dont { padding: 20px; border-radius: 16px; }
.ba-do   { background: rgba(46,230,166,.07);  border: 1px solid rgba(46,230,166,.3); }
.ba-dont { background: rgba(255,93,115,.07);  border: 1px solid rgba(255,93,115,.3); }
.ba-do h3, .ba-dont h3 { font-size: 17px; margin-bottom: 10px; }
.ba-do ul, .ba-dont ul { margin: 0; padding: 0; list-style: none; }
.ba-do li, .ba-dont li { padding: 5px 0; font-size: 15.5px; color: #cbd5e1; }

.ba-note { margin-top: 8px; padding: 18px 22px; border-radius: 16px; font-size: 15px; color: var(--ba-text-muted); background: rgba(255,255,255,.03); border: 1px dashed var(--ba-border); }
.ba-doc-custom { padding: 8px 4px; }
.ba-doc-custom h2, .ba-doc-custom h3 { margin: 24px 0 10px; }

/* CTA */
.ba-page-cta { text-align: center; padding: 56px 0 72px; background: #0c1322; border-top: 1px solid var(--ba-border); }
.ba-page-cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.ba-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.ba-cta-row.ba-center { justify-content: center; }
.ba-page .ba-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
    font-size: 15.5px; font-weight: 700; border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s;
}
.ba-page .ba-btn-primary { background: linear-gradient(120deg, var(--ba-accent), #7af0c6 60%, var(--ba-accent-2) 150%); color: #04251a !important; box-shadow: 0 10px 28px rgba(46,230,166,.25); }
.ba-page .ba-btn-primary:hover { transform: translateY(-3px); }
.ba-page .ba-btn-ghost { color: var(--ba-text-main) !important; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.ba-page .ba-btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }

.ba-foot-links { display: inline-block; margin-top: 6px; font-size: .85rem; }

@media (max-width: 900px) {
    .ba-page-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
    .ba-toc { position: static; }
    .ba-toc ol { columns: 2; column-gap: 20px; }
}
@media (max-width: 640px) {
    .ba-sec { padding: 22px 18px; }
    .ba-sec h2 { font-size: 19px; }
    .ba-mini-grid, .ba-dodont { grid-template-columns: 1fr; }
    .ba-toc ol { columns: 1; }
    .ba-page-hero { padding: 48px 0 40px; }
}
