/* ============================================================
   page.css — shared chrome + reading styles for the public
   About and Privacy pages. Loaded AFTER seo.css so the
   landing-style nav/footer override the lighter article chrome.
   ============================================================ */

:root {
  --navy-deep: #16262b;
  --teal-bright: #4fd1be;
  --line-2: #d2e2dc;
  --green-soft: #ddf0ec;
  --radius-pill: 999px;
}

/* ====== NAV (matches landing page) ====== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 250, 248, .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(22, 38, 43, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; position: relative; min-height: 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.015em; font-size: 19px; color: var(--ink); }
.brand-icon { width: 40px; height: 40px; flex: none; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; justify-content: center;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .85);
  padding: 6px; border-radius: 999px; box-shadow: 0 2px 10px rgba(22, 38, 43, .07); backdrop-filter: blur(8px);
}
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 600; padding: 8px 16px; border-radius: 999px; transition: .15s ease; }
.nav-links a:hover { color: var(--green-deep); background: rgba(255, 255, 255, .9); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 112px; min-width: 112px; border: 0; background: var(--green); color: #fff;
  border-radius: var(--radius-pill); padding: 5px;
  font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 10px rgba(22, 38, 43, .08); transition: .15s ease;
}
.lang-switch:hover { background: var(--green-deep); }
.lang-switch::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: var(--radius-pill); background: #fff; transition: transform .18s ease;
}
.lang-switch[aria-pressed="true"]::before { transform: translateX(100%); }
.lang-option { position: relative; z-index: 1; display: grid; place-items: center; min-height: 30px; }
.lang-bm { color: var(--green); }
.lang-en { color: #fff; }
.lang-switch[aria-pressed="true"] .lang-bm { color: #fff; }
.lang-switch[aria-pressed="true"] .lang-en { color: var(--green); }

/* ====== FOOTER (matches landing page) ====== */
footer { padding: 64px 0 32px; background: var(--navy-deep); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-col a.brand { display: flex; color: #fff; font-size: 17px; }
footer .brand-icon { width: 30px; height: 30px; flex: none; }
footer .brand-icon img { width: 30px; height: 30px; }
.foot-h { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.foot-col a, .foot-col li { display: block; color: rgba(255, 255, 255, .62); font-size: 14px; padding: 6px 0; }
.foot-col a:hover { color: var(--teal-bright); }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-tag { color: rgba(255, 255, 255, .62); font-size: 14px; max-width: 280px; margin-top: 16px; line-height: 1.6; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .14); padding: 0; }
.social a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); flex-wrap: wrap; gap: 10px; }

/* ====== READING / DOCUMENT LAYOUT ====== */
.page-hero { padding: 70px 0 40px; background: linear-gradient(180deg, #dff1ec 0%, var(--bg) 100%); }
.page-hero h1 { margin: 14px 0 16px; }
.doc-updated {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 7px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep);
  font-size: 13px; font-weight: 700; border: 1px solid var(--line-2);
}
.doc-updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* two-column doc with sticky table of contents */
.doc { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 96px; }
.doc-toc-h { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.doc-toc a {
  display: block; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); line-height: 1.35; transition: .12s ease;
}
.doc-toc a:hover { background: #fff; color: var(--green-deep); box-shadow: 0 1px 2px rgba(22, 38, 43, .05); }

.doc-main { min-width: 0; }
.doc-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px;
  box-shadow: var(--shadow); margin-bottom: 40px;
}
.doc-summary h2 { font-size: 22px; margin: 0 0 14px; }
.doc-summary ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.doc-summary li { color: var(--ink-2); }

.doc-sec { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.doc-sec:first-child { border-top: 0; padding-top: 6px; }
.doc-sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: 26px; margin: 0 0 14px; }
.doc-num {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--green-soft); color: var(--green-deep); border-radius: 10px;
  font-size: 15px; font-weight: 800; align-self: center;
}
.doc-sec p { margin: 0 0 12px; }
.doc-sec ul { padding-left: 22px; color: var(--ink-2); margin: 0 0 12px; }
.doc-sec li { margin: 8px 0; }

/* ====== ABOUT PAGE EXTRAS ====== */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature-block .lead { margin-bottom: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 34px; color: var(--ink-2); line-height: 1.55; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e6b60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.feature-list li strong { color: var(--ink); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px;
  box-shadow: var(--shadow); display: grid; gap: 14px;
}
.contact-card .social { margin-top: 4px; }
.contact-card .social a { color: var(--ink-2); background: var(--bg-2); border-color: var(--line); }
.contact-card .social a:hover { background: var(--green); color: #fff; border-color: var(--green); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; }
  .doc-toc ol { grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .feature-block { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .nav-cta { gap: 8px; }
  .lang-switch { width: 98px; min-width: 98px; font-size: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc-sec h2 { font-size: 22px; }
}
