/* ============================================================
   Prelination — sub-pages (Legal / About / Contact)
   Loads AFTER styles.css and reuses the same design tokens.
   Bilingual layout: Bengali primary, English in a muted block.
   ============================================================ */

/* ---------- Sub-page header ---------- */
.subhead {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid #e6ebf3;
  box-shadow: 0 2px 12px rgba(27, 35, 52, .05);
}
.subhead .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: var(--header-h); flex-wrap: wrap; padding-block: 10px;
}
.subhead .brand img { width: 160px; height: auto; }
.subhead nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.subhead nav a {
  color: var(--c-ink); font-weight: 600; font-size: .95rem; padding: 6px 2px;
}
.subhead nav a:hover { color: var(--c-primary); }
.subhead nav a[aria-current="page"] {
  color: var(--c-primary); border-bottom: 2px solid var(--c-primary);
}

/* ---------- Title band (centered) ---------- */
.legal-hero { background: var(--grad-blue); color: #fff; padding: clamp(40px, 7vw, 72px) 0; text-align: center; }
.legal-hero h1 { color: #fff; margin: 0 0 .35em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal-hero p { color: rgba(255, 255, 255, .92); margin: 0 auto; max-width: 62ch; }
.legal-hero .updated { margin-top: 1rem; font-size: .9rem; color: rgba(255, 255, 255, .82); }

/* ---------- Content column ---------- */
.legal { max-width: 880px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) 20px; }
.legal > section { scroll-margin-top: calc(var(--header-h) + 12px); }
.legal h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-top: 2.4em; padding-top: 1.3em; border-top: 1px solid #eef2f7;
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; color: var(--c-ink); }
.legal p, .legal li { color: var(--c-body); }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal ul li { list-style: disc; margin-bottom: .45em; }
.legal a { color: var(--c-primary); text-decoration: underline; }

/* English block under the Bengali text */
.legal .en {
  color: #6b7a8d; font-size: .95em;
  border-left: 3px solid #e6ebf3; padding-left: 14px; margin: -.1em 0 1.5em;
}
.legal .en :is(p, li) { color: #6b7a8d; }
.legal .en h3 { color: #6b7a8d; }

/* Callout / key-facts box */
.legal .note {
  background: var(--c-bg-soft); border: 1px solid #e6ebf3;
  border-radius: var(--radius); padding: 18px 20px; margin: 1.4em 0;
}
.legal .note :last-child { margin-bottom: 0; }
.legal .note strong { color: var(--c-ink); }

/* Business identity table */
.biz-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.biz-table th, .biz-table td {
  text-align: left; padding: 11px 13px; border: 1px solid #e6ebf3;
  vertical-align: top; font-size: .96rem;
}
.biz-table th { background: var(--c-bg-soft); color: var(--c-ink); width: 40%; font-weight: 600; }
.biz-table td { color: var(--c-body); }

/* Consent checkbox (checkout) */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--c-bg-soft); border: 1px solid #d8e0ec;
  border-radius: var(--radius); padding: 16px 18px; margin: 1.4em 0;
}
.consent input[type="checkbox"] { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--c-primary); }
.consent label { color: var(--c-ink); font-size: .97rem; line-height: 1.6; }
.consent label a { color: var(--c-primary); text-decoration: underline; }

/* ---------- Footer (dark — matches the homepage footer) ---------- */
.site-foot { background: var(--c-navy-deep); color: #cbd5e1; }
.site-foot .container { padding-block: clamp(44px, 6vw, 76px); }
.site-foot .foot-grid { display: grid; gap: 34px 28px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-foot .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-foot .wordmark { display: inline-block; margin-bottom: 18px; }
.site-foot .wordmark img { height: 40px; width: auto; display: block; }
.site-foot .biz { font-size: .85rem; line-height: 1.8; color: #9aa3af; }
.site-foot .biz p { margin: 0 0 1em; }
.site-foot .biz p:last-child { margin-bottom: 0; }
.site-foot .biz b { color: #e5e7eb; font-weight: 600; }

.site-foot h4 {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: #e5e7eb; font-weight: 700; margin: 0 0 18px;
}
.site-foot .foot-col ul li { margin-bottom: 13px; }
.site-foot .foot-col a { color: #cbd5e1; }
.site-foot .foot-col a:hover { color: #fff; }

.site-foot .foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: clamp(32px, 5vw, 52px); padding-top: 22px;
  font-size: .84rem; color: #94a3b8;
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
}
.site-foot .foot-bottom .dev { color: #cbd5e1; }

/* ---------- Benefits grid (About page) ---------- */
.benefits { max-width: 1120px; margin-inline: auto; padding: clamp(10px, 3vw, 24px) 20px clamp(36px, 6vw, 64px); }
.benefits .head { text-align: center; max-width: 62ch; margin: 0 auto clamp(24px, 4vw, 40px); }
.benefits h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .35em; }
.benefits .head p { color: var(--c-body); margin: 0; }
.benefits-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .benefits-grid { grid-template-columns: 1fr 1fr 1fr; } }
.benefit-card {
  background: var(--c-white); border: 1px solid #e6ebf3; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
}
.benefit-card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-green-soft); color: var(--c-green-deep); margin-bottom: 14px;
}
.benefit-card .ic svg { width: 24px; height: 24px; }
.benefit-card h3 { margin: 0 0 .4em; font-size: 1.1rem; color: var(--c-ink); }
.benefit-card p { margin: 0; color: var(--c-body); font-size: .96rem; }

/* ---------- Contact cards ---------- */
.contact-cards { max-width: 640px; margin-inline: auto; display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--c-bg-soft); border: 1px solid #e6ebf3; border-radius: 16px;
  padding: 20px 22px;
}
.contact-card .ic {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: #e7f0fe; color: var(--c-primary-dark);
}
.contact-card .ic svg { width: 21px; height: 21px; }
.contact-card .lbl {
  font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
  color: #9aa3af; margin: 0 0 4px; font-weight: 600;
}
.contact-card .val { margin: 0; color: var(--c-ink); font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.contact-card .val a { color: var(--c-ink); text-decoration: none; }
.contact-card .val a:hover { color: var(--c-primary); }
