/* genpbx.bd legal pages: Privacy Policy and Terms & Conditions.
   App-store style: blue wave hero with the app icon, white cards on a soft background. */
.legal{background:#f3f7fc}
.legal .nav a[aria-current="page"]{color:var(--navy);background:var(--tint)}

/* hero */
.lg-hero{position:relative;color:#fff;overflow:hidden;
  background:linear-gradient(180deg,rgba(2,40,110,.10),rgba(2,40,110,.38)),url("/static/img/bg.webp") center/cover,var(--deep)}
.lg-hero .wrap{max-width:1040px;padding-top:34px;padding-bottom:34px}
.crumb{display:flex;gap:8px;align-items:center;font-size:13px;color:rgba(255,255,255,.8);margin-bottom:22px}
.crumb a{text-decoration:none;color:rgba(255,255,255,.8)}.crumb a:hover{color:#fff}
.lg-app{display:flex;align-items:center;gap:18px}
.lg-icon{width:76px;height:76px;border-radius:20px;flex:none;box-shadow:0 14px 30px -12px rgba(0,20,60,.65),0 0 0 3px rgba(255,255,255,.25)}
.lg-kicker{display:block;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.82);margin-bottom:4px}
.lg-hero h1{font-size:clamp(28px,4.2vw,42px);font-weight:800;line-height:1.2;letter-spacing:-.03em;padding-bottom:2px}
.lg-hero .lead{font-size:17.5px;color:rgba(255,255,255,.9);margin-top:16px;max-width:38em}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.chip{display:inline-flex;align-items:center;gap:6px;font:500 13px/1 var(--f-body);color:#fff;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.35);border-radius:99px;padding:8px 13px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.chip svg{width:15px;height:15px}
.btn-chip{cursor:pointer}.btn-chip:hover{background:rgba(255,255,255,.24)}
.seg{display:inline-flex;gap:4px;margin-top:20px;padding:4px;border-radius:14px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.seg a{text-decoration:none;font-size:14px;font-weight:600;color:#fff;padding:9px 16px;border-radius:10px;white-space:nowrap}
.seg a[aria-selected="true"]{background:#fff;color:var(--navy);box-shadow:0 6px 16px -8px rgba(0,20,60,.5)}

/* at a glance: small white chips lifted over the hero */
.glance{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:1040px;margin-top:-34px}
.gc{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:10px 12px;
  box-shadow:0 12px 28px -20px rgba(3,40,110,.5);border:1px solid #e8eef7}
.gi{width:32px;height:32px;flex:none;border-radius:10px;display:grid;place-items:center;color:#fff;
  background:var(--brand-bg)}
.gi svg{width:17px;height:17px}
.gc b{display:block;font-size:13.5px;font-family:var(--f-head);color:var(--ink);line-height:1.3}
.gc p{display:none}

/* layout */
.lg-grid{display:grid;grid-template-columns:260px 1fr;gap:24px;max-width:1040px;margin-top:28px;padding-bottom:70px;align-items:start}
.toc{position:sticky;top:84px;font-size:14px}
.toc details{background:#fff;border:1px solid #e8eef7;border-radius:18px;padding:16px 10px 12px;box-shadow:0 12px 30px -24px rgba(3,40,110,.4)}
.toc summary{list-style:none;display:flex;justify-content:space-between;align-items:center;font-weight:800;font-family:var(--f-head);
  color:var(--ink);padding:0 10px 10px;cursor:default}
.toc summary::-webkit-details-marker{display:none}
.toc summary svg{width:18px;height:18px;display:none}
.toc ol{list-style:none;margin:0;padding:0;counter-reset:t}
.toc li a{counter-increment:t;display:flex;gap:10px;align-items:baseline;text-decoration:none;color:var(--ink-2);padding:7px 10px;border-radius:10px;line-height:1.35}
.toc li a::before{content:counter(t);font-size:11.5px;font-weight:700;color:var(--ink-3);min-width:16px}
.toc li a:hover{background:var(--soft);color:var(--ink)}
.toc li a.on{background:var(--tint);color:var(--navy);font-weight:600}
.toc li a.on::before{color:var(--navy)}
.toc-help{margin-top:14px;padding:16px;border-radius:18px;color:#fff;
  background:linear-gradient(160deg,rgba(2,40,110,.15),rgba(2,40,110,.45)),url("/static/img/bg.webp") center/cover}
.toc-help b{display:block;margin-bottom:10px;font-size:15px}
.toc-help .btn{width:100%;background:#fff;color:var(--navy)}.toc-help .btn svg{width:16px;height:16px;color:#16a34a}

/* sections: one white card each */
.doc{min-width:0;font-size:15.5px;line-height:1.72;color:var(--ink-2)}
.ds{background:#fff;border:1px solid #e8eef7;border-radius:20px;padding:24px 26px;margin-bottom:16px;scroll-margin-top:84px;
  box-shadow:0 12px 30px -26px rgba(3,40,110,.45)}
.ds h2{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800;color:var(--ink);margin-bottom:14px}
.ds h2 .n{flex:none;width:34px;height:34px;border-radius:11px;color:#fff;font-size:14px;display:grid;place-items:center;
  background:var(--brand-bg);box-shadow:0 8px 16px -10px rgba(3,80,163,.9)}
.anc{margin-left:auto;opacity:0;color:var(--ink-3);display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;transition:opacity .15s}
.anc svg{width:16px;height:16px}
.ds:hover .anc,.anc:focus-visible{opacity:1}.anc:hover{background:var(--soft);color:var(--navy)}
.doc p{margin:0 0 12px}.doc p:last-child{margin-bottom:0}
.doc a{color:var(--navy);font-weight:600;text-decoration:none}.doc a:hover{text-decoration:underline}
.doc b{color:var(--ink)}
.doc ul,.doc ol{margin:0 0 12px;padding-left:0;list-style:none}
.doc ul:last-child,.doc ol:last-child{margin-bottom:0}
.doc ul li{position:relative;padding-left:22px;margin:8px 0}
.doc ul li::before{content:"";position:absolute;left:4px;top:.72em;width:7px;height:7px;border-radius:50%;background:var(--blue)}
.doc ol{counter-reset:o}
.doc ol li{counter-increment:o;position:relative;padding-left:34px;margin:10px 0}
.doc ol li::before{content:counter(o);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:8px;background:var(--tint);color:var(--navy);
  font-size:12.5px;font-weight:700;display:grid;place-items:center;line-height:1}
.doc ul.ticks li::before,.doc ul.no li::before{width:20px;height:20px;left:0;top:3px;display:grid;place-items:center;font-size:11.5px;font-weight:800;line-height:1}
.doc ul.ticks li,.doc ul.no li{padding-left:30px}
.doc ul.ticks li::before{content:"✓";background:#dcfce7;color:#15803d}
.doc ul.no li::before{content:"✕";background:#fee2e2;color:#b91c1c}
.doc ol.steps li{margin:8px 0;padding:12px 14px 12px 52px;border:1px solid #e8eef7;border-radius:14px;background:#fafcff}
.doc ol.steps li::before{left:14px;top:12px;width:28px;height:28px;border-radius:9px;color:#fff;background:var(--brand-bg)}
.muted{color:var(--ink-3);font-size:14px}

.perm{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.perm div{border:1px solid #e8eef7;border-radius:14px;padding:13px 15px;background:#fafcff}
.perm b{display:block;font-size:14.5px;margin-bottom:2px}
.perm span{font-size:13.5px;color:var(--ink-3);line-height:1.5;display:block}

.tbl{overflow-x:auto;border:1px solid #e8eef7;border-radius:14px;margin:6px 0 14px;-webkit-overflow-scrolling:touch}
.tbl table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:680px}
.tbl th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:#fff;background:var(--brand-bg);padding:11px 12px;font-weight:600}
.tbl td{padding:11px 12px;border-top:1px solid #eef2f8;vertical-align:top;line-height:1.45}
.tbl tr:nth-child(even) td{background:#f8fbff}

.del{border-radius:16px;padding:18px 20px;background:linear-gradient(135deg,#eaf4ff,#f5faff);border:1px solid #cfe2f8}

.other{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-radius:20px;padding:18px 22px;margin-top:6px;color:#fff;
  background:linear-gradient(160deg,rgba(2,40,110,.1),rgba(2,40,110,.45)),url("/static/img/bg.webp") center/cover;font-size:14px}
.other a{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--navy);background:#fff;text-decoration:none;font-size:15px;padding:9px 16px;border-radius:12px}
.other a svg{width:18px;height:18px}

.totop{position:fixed;right:18px;bottom:24px;width:44px;height:44px;border-radius:50%;color:#fff;
  background:var(--brand-bg);box-shadow:0 10px 24px -10px rgba(3,80,163,.8);display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .2s;z-index:40}
.totop svg{width:20px;height:20px}.totop.show{opacity:1;pointer-events:auto}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--ink);color:#fff;font-size:13.5px;font-weight:600;padding:9px 16px;border-radius:10px;opacity:0;transition:.2s;z-index:80;pointer-events:none}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:980px){
  .glance{grid-template-columns:1fr 1fr}
  .lg-grid{grid-template-columns:1fr;gap:14px;margin-top:16px}
  .toc{position:sticky;top:0;z-index:30;margin:0 -16px;padding:8px 16px;background:rgba(243,247,252,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
  .toc details{padding:0;border-radius:14px}
  .toc summary{cursor:pointer;padding:12px 16px}
  .toc summary svg{display:block;transition:transform .2s}
  .toc details[open] summary svg{transform:rotate(180deg)}
  .toc ol{max-height:52vh;overflow:auto;padding:0 6px 8px;border-top:1px solid #eef2f8}
  .toc-help{display:none}
  .ds{scroll-margin-top:72px}
}
@media (max-width:820px){
  .lg-hero .wrap{padding-top:calc(24px + env(safe-area-inset-top,0px));padding-bottom:24px}
  .legal footer .wrap{padding-bottom:120px}
  .totop{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .toast{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  .anc{opacity:1}
}
@media (max-width:560px){
  .lg-app{gap:14px}.lg-icon{width:60px;height:60px;border-radius:16px}
  .lg-kicker{font-size:11.5px}
  .lg-hero .lead{font-size:15.5px;margin-top:12px}
  .seg{display:flex}.seg a{flex:1;text-align:center;padding:9px 6px;font-size:13.5px}
  .glance{grid-template-columns:1fr 1fr;gap:8px;margin-top:-30px}
  .gc{padding:9px 10px;gap:8px;border-radius:12px}
  .gi{width:28px;height:28px;border-radius:8px}.gi svg{width:15px;height:15px}
  .gc b{font-size:12.5px}
  .perm{grid-template-columns:1fr}
  .ds{padding:18px 16px;border-radius:18px}
  .ds h2{font-size:18.5px;gap:10px}.ds h2 .n{width:30px;height:30px;font-size:13px}
  .doc{font-size:15px}
}
@media print{
  .bar,.tabbar,.toc,.totop,.toast,.seg,.btn-chip,.wafab,footer,.anc,.other{display:none!important}
  .legal{background:#fff}.lg-hero{background:none;color:var(--ink)}.lg-hero .lead,.lg-kicker,.crumb{color:var(--ink-2)}
  .lg-grid{display:block}.glance{margin-top:10px}.ds{box-shadow:none;break-inside:avoid}
  .doc a{color:inherit}.tbl table{min-width:0}
}
