/* ==========================================================================
   Trakanalytica Academy - Privacy Policy page (privacy.php)
   All selectors are prefixed "pv-" so nothing here can collide with the
   shared rules in assets/style.css. Loaded only on this page through
   $pageCss in includes/header.php.
   ========================================================================== */

/* 1500px of content, plus the 32px side padding */
.pv-wrap { max-width: 1564px; margin: 0 auto; padding: 0 32px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.pv-hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px;
  background: linear-gradient(135deg, #0B1730 0%, #1A2E6B 55%, #4C1D95 100%);
}
.pv-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 88% 12%, rgba(167,139,250,0.36), transparent 70%),
    radial-gradient(460px 360px at 6% 98%, rgba(245,114,10,0.20), transparent 70%);
}
.pv-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.pv-hero-grid { position: relative; z-index: 1; }
.pv-hero-copy { max-width: 1000px; margin: 0 auto; text-align: center; }
.pv-crumb { margin-bottom: 26px; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.pv-crumb a { color: rgba(255,255,255,0.85); }
.pv-crumb a:hover { color: #fff; }
.pv-crumb i { margin: 0 6px; font-size: 0.6rem; }
.pv-eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-light);
}
.pv-hero-copy h1 {
  margin: 0 0 18px; font-family: var(--font-head); font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 700; line-height: 1.16; color: #fff; text-wrap: balance;
}
.pv-hero-lead { max-width: 720px; margin: 0 auto; font-size: 1.15rem; line-height: 1.75; color: rgba(255,255,255,0.86); }
.pv-meta { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pv-meta li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font-size: 0.92rem; color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
}
.pv-meta li i { color: var(--accent-light); }
.pv-meta li strong { color: #fff; font-weight: 700; }

/* ==========================================================================
   DOCUMENT LAYOUT
   ========================================================================== */
.pv-doc { padding: 80px 0 96px; background: var(--off-white); }
.pv-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }

/* ---------- Contents ---------- */
.pv-side { position: sticky; top: 120px; }
.pv-toc {
  background: #fff; border: 1px solid var(--light-gray); border-radius: 22px;
  box-shadow: 0 6px 20px rgba(11,23,48,0.05); overflow: hidden;
}
.pv-toc summary {
  display: flex; align-items: center; gap: 12px; padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--navy);
}
.pv-toc summary::-webkit-details-marker { display: none; }
.pv-toc summary > i:first-child { color: var(--purple-mid); }
.pv-toc-chev { margin-left: auto; font-size: 0.8rem; color: var(--mid-gray); transition: transform .25s ease; }
.pv-toc[open] .pv-toc-chev { transform: rotate(180deg); }
.pv-toc nav { max-height: calc(100vh - 260px); overflow-y: auto; padding: 0 12px 14px; border-top: 1px solid var(--light-gray); }
.pv-toc ol { list-style: none; margin: 0; padding: 10px 0 0; }
.pv-toc li a {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 12px;
  font-size: 0.93rem; line-height: 1.4; color: var(--text-body); transition: var(--transition);
}
.pv-toc li a b { flex-shrink: 0; min-width: 24px; font-family: var(--font-head); font-weight: 800; color: var(--purple-mid); }
.pv-toc li a:hover { background: rgba(124,58,237,0.07); color: var(--purple); }
.pv-toc li a.active { background: rgba(124,58,237,0.1); color: var(--purple); font-weight: 700; }

/* ---------- Article ---------- */
.pv-article {
  padding: 24px 56px 48px; border-radius: 28px; background: #fff; border: 1px solid var(--light-gray);
  box-shadow: 0 10px 30px rgba(11,23,48,0.06);
}
.pv-sec { padding: 40px 0; border-bottom: 1px solid var(--light-gray); scroll-margin-top: 120px; }
.pv-sec:first-of-type { padding-top: 24px; }
.pv-sec:last-of-type { border-bottom: 0; }
.pv-sec h2 {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  font-family: var(--font-head); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.3; color: var(--navy);
}
.pv-num {
  flex-shrink: 0; min-width: 44px; height: 44px; padding: 0 10px; display: grid; place-items: center; border-radius: 14px;
  font-size: 1.05rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--purple-mid), var(--orange));
}
.pv-sec h3 { margin: 28px 0 12px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--purple); }
.pv-sec p { max-width: 900px; margin: 0 0 16px; font-size: 1.04rem; line-height: 1.85; color: var(--text-body); }
.pv-sec p:last-child { margin-bottom: 0; }
.pv-sec a { color: var(--purple-mid); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pv-sec a:hover { color: var(--purple); }

/* Bullet list */
.pv-list { list-style: none; max-width: 900px; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pv-list li { position: relative; padding-left: 30px; font-size: 1.02rem; line-height: 1.7; color: var(--text-body); }
.pv-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid), var(--orange));
}

/* Numbered steps */
.pv-steps { list-style: none; counter-reset: step; max-width: 900px; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pv-steps li {
  counter-increment: step; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px;
  background: var(--off-white); border: 1px solid var(--light-gray);
  font-size: 1.02rem; line-height: 1.55; color: var(--text-body);
}
.pv-steps li::before {
  content: counter(step); flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 800; color: #fff; background: var(--navy);
}

/* Highlighted notice */
.pv-callout {
  display: flex; gap: 16px; align-items: flex-start; max-width: 900px; margin: 0 0 18px; padding: 24px 26px; border-radius: 18px;
  background: rgba(245,114,10,0.08); border: 1.5px solid rgba(245,114,10,0.35);
}
.pv-callout i { flex-shrink: 0; margin-top: 3px; font-size: 1.25rem; color: var(--orange-dark); }
.pv-sec .pv-callout p { margin: 0; font-size: 1.04rem; font-weight: 700; line-height: 1.75; color: var(--navy); }

/* Contact details */
.pv-org {
  display: flex; flex-direction: column; gap: 4px; max-width: 900px; margin: 0 0 20px; padding: 22px 26px; border-radius: 18px; font-style: normal;
  background: var(--off-white); border: 1px solid var(--light-gray);
}
.pv-org strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.pv-org span { font-size: 1rem; color: var(--text-body); }
.pv-contact { list-style: none; max-width: 900px; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pv-contact li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--light-gray); }
.pv-ico {
  flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  font-size: 1rem; color: var(--purple-mid); background: rgba(124,58,237,0.1);
}
.pv-contact div { min-width: 0; font-size: 0.95rem; line-height: 1.5; word-break: break-word; }
.pv-contact em { display: block; margin-bottom: 2px; font-style: normal; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); }

.pv-copy { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--light-gray); text-align: center; font-size: 0.88rem; color: var(--mid-gray); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .pv-contact { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .pv-hero { padding: 64px 0 76px; }
  .pv-doc { padding: 56px 0 72px; }
  .pv-layout { grid-template-columns: 1fr; gap: 28px; }
  .pv-side { position: static; }
  .pv-toc nav { max-height: 360px; }
  .pv-article { padding: 16px 36px 36px; }
}
@media (min-width: 1025px) {
  .pv-toc summary { cursor: default; }
  .pv-toc-chev { display: none; }
}
@media (max-width: 720px) {
  .pv-wrap { padding: 0 20px; }
  .pv-hero { padding: 56px 0 64px; }
  .pv-meta li { width: 100%; justify-content: center; }
  .pv-article { padding: 8px 22px 28px; border-radius: 22px; }
  .pv-sec { padding: 30px 0; }
  .pv-sec h2 { gap: 12px; }
  .pv-num { min-width: 38px; height: 38px; border-radius: 12px; font-size: 0.95rem; }
  .pv-steps li, .pv-callout { padding: 14px 16px; }
}