/* PRIVACY POLICY — replicates the original ProvidusBank privacy
   layout: sticky numbered Contents sidebar + accordion sections. */

/* The global html/body use overflow-x:hidden, which forces overflow-y to
   auto and makes them scroll containers that break the sticky Contents
   column. clip prevents horizontal scroll without a scroll container.
   Scoped — this stylesheet only loads on the Privacy page. */
html,
body {
  overflow-x: clip;
}

/* .page-shell uses overflow:hidden — a scroll container that the sticky
   Contents sidebar would latch onto instead of the viewport. clip keeps
   the clipping without creating a scroll container, so sticky pins. */
.page-shell {
  overflow: clip;
}

.pp-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 80px 96px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sticky toc */
.pp-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.pp-toc-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pp-toc-head span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.pp-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.18s;
  line-height: 1.35;
  border-left: 2px solid transparent;
}
.pp-toc-list a:hover {
  background: var(--gold-pale);
  color: var(--dark);
  border-left-color: var(--gold);
}
.pp-toc-list a.active {
  background: var(--gold-pale);
  color: #b37a00;
  font-weight: 600;
  border-left-color: var(--gold);
}
.toc-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.06);
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pp-toc-list a.active .toc-num,
.pp-toc-list a:hover .toc-num {
  background: var(--gold);
  color: var(--dark);
}

/* last updated badge */
.pp-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 168, 0, 0.1);
  border: 1px solid rgba(245, 168, 0, 0.25);
  color: #b37a00;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.pp-updated svg {
  width: 12px;
  height: 12px;
}

/* Content */
.pp-content {
  min-width: 0;
}
.pp-intro {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 32px 36px;
  margin-bottom: 40px;
  box-shadow: 0 4px 17px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  position: relative;
  overflow: hidden;
}
.pp-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 168, 0, 0.4), transparent);
}
.pp-intro p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0;
}
.pp-intro p + p {
  margin-top: 12px;
}
.pp-intro strong {
  color: var(--dark);
}
.pp-intro a {
  color: #b37a00;
  font-weight: 500;
  text-decoration: none;
}
.pp-intro a:hover {
  text-decoration: underline;
}

/* sections */
.pp-section {
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
  background: white;
  transition: box-shadow 0.2s;
  scroll-margin-top: 110px;
}
.pp-section:hover {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}
.pp-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.18s;
}
.pp-sec-head:hover {
  background: var(--gold-pale);
}
.pp-sec-head.open {
  background: var(--dark);
}
.pp-sec-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pp-sec-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--gold-pale);
  border: 1px solid rgba(245, 168, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #b37a00;
  transition: all 0.18s;
}
.pp-sec-head.open .pp-sec-num {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.pp-sec-head:hover:not(.open) .pp-sec-num {
  background: var(--gold);
  color: var(--dark);
}
.pp-sec-label {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  transition: color 0.18s;
}
.pp-sec-head.open .pp-sec-label {
  color: white;
}
.pp-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.pp-chevron svg {
  width: 10px;
  height: 10px;
  color: var(--gray);
  transition: transform 0.25s;
}
.pp-sec-head.open .pp-chevron {
  background: rgba(255, 255, 255, 0.15);
}
.pp-sec-head.open .pp-chevron svg {
  color: white;
  transform: rotate(180deg);
}
.pp-sec-body {
  display: none;
  padding: 24px 28px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}
.pp-sec-body.open {
  display: block;
  animation: fadeDown 0.2s ease;
}
.pp-sec-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 14px;
}
.pp-sec-body p:last-child {
  margin-bottom: 0;
}
.pp-sec-body h4 {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  margin: 18px 0 6px;
}
.pp-sec-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
}
.pp-sec-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.pp-sec-body ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}
.pp-sec-body strong {
  color: var(--dark);
  font-weight: 600;
}
.pp-sec-body a {
  color: #b37a00;
  text-decoration: none;
  font-weight: 500;
}
.pp-sec-body a:hover {
  text-decoration: underline;
}

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

/* next-steps bar */
.pp-next {
  background: linear-gradient(135deg, #0a0800 0%, #111 100%);
  border-radius: 18px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  border: 1px solid rgba(245, 168, 0, 0.18);
}
.pp-next::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(245, 168, 0, 0.1) 0%, transparent 60%);
}
.pp-next-title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}
.pp-next-title em {
  font-style: normal;
  color: var(--gold);
}
.pp-next-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.pp-next-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.pp-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.pp-next-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 168, 0, 0.35);
  color: white;
}
.pp-next-btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}
.pp-next-btn.gold:hover {
  background: #e09700;
}

/* Responsive */
@media (max-width: 1024px) {
  .pp-layout {
    grid-template-columns: 1fr;
    padding: 48px 40px 72px;
  }
  .pp-toc {
    position: static;
  }
  .pp-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pp-toc-list a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
  }
  .pp-toc-list a.active,
  .pp-toc-list a:hover {
    border-bottom-color: var(--gold);
    border-left-color: transparent;
  }
  .pp-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pp-layout {
    padding: 40px 24px 56px;
    gap: 32px;
  }
  .pp-sec-head {
    padding: 16px 20px;
  }
  .pp-sec-body {
    padding: 18px 20px 22px;
  }
  .pp-next {
    padding: 28px 24px;
  }
}
