/* ============================================================
   Enjoy Badagry — Privacy Policy page
   Loaded after styles.css; relies on its design tokens.
   ============================================================ */

/* Slim policy header */
.pnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 249, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.pnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.pnav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.pnav__logo {
  height: 44px;
  width: auto;
}

/* Policy hero */
.phero {
  background: linear-gradient(155deg, var(--forest-deep) 0%, var(--forest) 70%, var(--forest-soft) 100%);
  color: var(--on-dark);
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}

.phero__inner {
  max-width: 820px;
}

.phero__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.phero__title {
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: #fff;
}

.phero__meta {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

.phero__meta time {
  font-weight: 600;
  color: var(--on-dark);
}

/* Layout: TOC + article */
.playout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.ptoc {
  position: sticky;
  top: calc(64px + 1.5rem);
  max-height: calc(100vh - 64px - 3rem);
  overflow-y: auto;
  padding: 1.35rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.ptoc__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunset);
  margin-bottom: 0.9rem;
}

.ptoc__list {
  display: grid;
  gap: 0.15rem;
  counter-reset: toc;
}

.ptoc__list a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.ptoc__list a:hover {
  color: var(--forest);
  background: rgba(11, 77, 58, 0.06);
}

.ptoc__list a.is-active {
  color: var(--forest);
  font-weight: 600;
  border-left-color: var(--orange);
  background: rgba(232, 138, 58, 0.08);
}

/* Mobile TOC disclosure */
.ptoc-mobile {
  display: none;
  margin-bottom: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.ptoc-mobile summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ptoc-mobile summary::-webkit-details-marker {
  display: none;
}

.ptoc-mobile summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sunset);
  border-bottom: 2px solid var(--sunset);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}

.ptoc-mobile[open] summary::after {
  transform: rotate(-135deg);
}

.ptoc-mobile .ptoc__list {
  padding: 0 0.85rem 1rem;
}

/* Article */
.pdoc {
  min-width: 0;
}

.pdoc__intro {
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--sand);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--orange);
}

.pdoc__intro p {
  font-size: 0.97rem;
  color: var(--ink);
}

.pdoc section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(64px + 1.25rem);
}

.pdoc h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.pdoc h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--forest);
}

.pdoc p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.pdoc p:last-child {
  margin-bottom: 0;
}

.pdoc ul,
.pdoc ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.pdoc ol {
  list-style: decimal;
}

.pdoc li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.45rem;
}

.pdoc a {
  color: var(--forest);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pdoc a:hover {
  color: var(--sunset);
}

.pdoc strong {
  color: var(--ink);
}

/* Provider table */
.pdoc__tablewrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pdoc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.9rem;
  min-width: 560px;
}

.pdoc th,
.pdoc td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.pdoc th {
  background: var(--sand);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.pdoc td {
  color: var(--muted);
}

.pdoc tr:last-child td {
  border-bottom: 0;
}

/* Callout */
.pdoc__note {
  display: flex;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  background: rgba(11, 77, 58, 0.06);
  border: 1px dashed rgba(11, 77, 58, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--forest);
  line-height: 1.6;
}

.pdoc__note svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* Back link at end of article */
.pdoc__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}

.pdoc__back:hover {
  color: var(--sunset);
  gap: 0.7rem;
}

/* Responsive */
@media (max-width: 960px) {
  .playout {
    grid-template-columns: 1fr;
  }

  .ptoc {
    display: none;
  }

  .ptoc-mobile {
    display: block;
  }
}
