/* ═══════════════════════════════════════════════════════════
   Privacy & Policy Page — Tactical Defence Tanzania
   Clean, minimal tabbed layout matching reference design
   ═══════════════════════════════════════════════════════════ */

/* ── Register Satoshi Font (@font-face) ── */
@font-face {
  font-family: 'Satoshi';
  src: url('../font/Satoshi-Regular.woff2') format('woff2'),
       url('../fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../font/Satoshi-Medium.woff2') format('woff2'),
       url('../fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../font/Satoshi-Bold.woff2') format('woff2'),
       url('../fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Essential for position: sticky to work properly ── */
html.privacy-html,
html:has(body.privacy-page),
body.privacy-page {
  overflow: visible !important;
  overflow-x: clip !important;
  height: auto !important;
  min-height: 100% !important;
  background-color: #ffffff !important;
  color: #111827;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Fixed Header on Privacy Page ── */
body.privacy-page .bm-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  padding: 16px 0 !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease !important;
}

body.privacy-page .bm-header .bm-nav__link {
  color: #070c26 !important;
}

body.privacy-page .bm-header .bm-fav-link {
  color: #070c26 !important;
}

body.privacy-page .bm-header .bm-fav-icon {
  fill: #070c26 !important;
}

body.privacy-page .bm-header .bm-search-trigger {
  color: #070c26 !important;
  border-color: rgba(7, 12, 38, 0.2) !important;
}

body.privacy-page .bm-header .bm-divider {
  background-color: rgba(7, 12, 38, 0.15) !important;
}

body.privacy-page .bm-header .bm-menu-btn span {
  background-color: #070c26 !important;
}

body.privacy-page .bm-header .bm-plan-btn {
  background-color: #070c26 !important;
  color: #ffffff !important;
  border: 1px solid #070c26 !important;
}

body.privacy-page .bm-header .bm-plan-btn:hover {
  background-color: #c09b52 !important;
  border-color: #c09b52 !important;
  color: #ffffff !important;
}

/* ── Breadcrumb ── */
.pp-breadcrumb {
  margin-top: 130px;
  padding: 24px 0 0;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  font-size: 13.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp-breadcrumb a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(17, 24, 39, 0.3);
  transition: all 0.2s;
}

.pp-breadcrumb a:hover {
  color: #c09b52;
  text-decoration-color: #c09b52;
}

.pp-breadcrumb .pp-bc-sep {
  color: #9ca3af;
  font-size: 13px;
}

.pp-breadcrumb .pp-bc-current {
  color: #111827;
}

/* ── Main Layout (Flexbox container for guaranteed sticky sidebar) ── */
.pp-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 48px) 100px;
  display: flex !important;
  align-items: flex-start !important;
  gap: 68px !important;
  position: relative !important;
}

/* ── Sticky Sidebar Tabs (Generous top margin so words are never cut by fixed header) ── */
.pp-sidebar {
  flex: 0 0 240px !important;
  width: 240px !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 135px !important;
  align-self: flex-start !important;
  height: fit-content !important;
  max-height: calc(100vh - 150px) !important;
  z-index: 20 !important;
}

.pp-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pp-sidebar-nav li {
  margin: 0;
  padding: 0;
}

.pp-sidebar-nav li a {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  color: #71717a;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
  padding: 2px 0;
  position: relative;
}

.pp-sidebar-nav li a:hover {
  color: #070c26;
}

.pp-sidebar-nav li a.active {
  color: #070c26;
  font-weight: 600;
}

/* ── Content Area ── */
.pp-content {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 860px;
}

/* Tab Panels */
.pp-tab-panel {
  display: none;
  animation: ppFadeIn 0.25s ease forwards;
  scroll-margin-top: 140px;
}

.pp-tab-panel.active {
  display: block;
}

@keyframes ppFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.pp-content h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 600;
  color: #070c26;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.25;
}

.pp-content .pp-updated {
  font-family: 'Satoshi', sans-serif !important;
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 36px;
  font-weight: 400;
}

.pp-content h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #070c26;
  letter-spacing: -0.01em;
  margin: 38px 0 16px;
  line-height: 1.35;
}

.pp-content h2:first-of-type {
  margin-top: 0;
}

.pp-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 24px 0 10px;
}

p,
.pp-content p {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15.5px;
  line-height: 1.8;
  color: #374151;
  margin: 0 0 18px;
  font-weight: 400;
}

.pp-content ul,
.pp-content ol {
  margin: 0 0 24px;
  padding-left: 20px;
}

.pp-content li {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15.5px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 400;
}

.pp-content li strong {
  color: #111827;
  font-weight: 600;
}

.pp-content a {
  color: #070c26;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(7, 12, 38, 0.3);
  transition: all 0.2s;
}

.pp-content a:hover {
  color: #c09b52;
  text-decoration-color: #c09b52;
}

/* Data Controller Bullet Info List */
.pp-info-list {
  list-style: disc;
  padding-left: 20px;
  margin: 16px 0 28px;
}

.pp-info-list li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #374151;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pp-wrapper {
    flex-direction: column !important;
    gap: 36px !important;
    padding-top: 28px;
    padding-bottom: 60px;
  }

  .pp-sidebar {
    flex: none !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-height: none !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pp-sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    min-width: max-content;
  }

  .pp-sidebar-nav li a {
    font-size: 14.5px;
    padding-bottom: 6px;
  }

  .pp-sidebar-nav li a.active {
    border-bottom: 2px solid #070c26;
  }
}
