/**
 * Privacy Policy page – privacy-policy.php only
 */
:root {
  --pp-navy: #071a42;
  --pp-blue: #0b2b6f;
  --pp-primary: #ffb302;
  --pp-primary-dark: #e6a000;
  --pp-muted: #5c6370;
  --pp-radius: 16px;
  --pp-shadow: 0 12px 40px rgba(11, 43, 111, 0.1);
  --section-y: clamp(64px, 8vw, 88px);
}

.page-privacy main {
  overflow-x: hidden;
}

/* ── Hero ── */
.pp-hero {
  background: linear-gradient(125deg, #0040c1 0%, #0b2b6f 48%, #071a42 100%);
  padding: var(--section-y) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 30%, rgba(255, 179, 2, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 26, 66, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.pp-hero .container {
  position: relative;
  z-index: 1;
}

.pp-hero__badge {
  display: inline-block;
  background: rgba(255, 179, 2, 0.15);
  border: 1px solid rgba(255, 179, 2, 0.4);
  color: var(--pp-primary);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}

.pp-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pp-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 14px;
}

.pp-hero__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

.pp-hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.pp-hero__trust li {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-hero__trust li i {
  color: var(--pp-primary);
  font-size: 12px;
}

/* ── Sections ── */
.pp-section {
  padding: var(--section-y) 0;
}

.pp-section--alt {
  background: #f8f9fc;
}

.pp-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 44px);
}

.pp-section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pp-blue);
  margin-bottom: 10px;
}

.pp-section__head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--pp-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.pp-section__head p {
  color: var(--pp-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Summary cards ── */
.pp-summary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 576px) {
  .pp-summary__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pp-summary__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pp-summary {
  display: block;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--pp-radius) + 2px);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}

.pp-summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11, 43, 111, 0.11);
  border-color: rgba(255, 179, 2, 0.3);
  text-decoration: none;
  color: inherit;
}

.pp-summary__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 98, 255, 0.12) 0%, rgba(11, 43, 111, 0.06) 100%);
  color: var(--pp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.pp-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pp-summary p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pp-muted);
  margin: 0;
}

/* ── Layout: TOC + content ── */
.pp-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 992px) {
  .pp-layout {
    grid-template-columns: 280px 1fr;
    gap: 36px;
  }
}

.pp-toc {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--pp-radius) + 2px);
  padding: 20px 16px;
  box-shadow: var(--pp-shadow);
}

@media (min-width: 992px) {
  .pp-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.pp-toc__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pp-navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8ecf4;
}

.pp-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.pp-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pp-muted);
  text-decoration: none;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
}

.pp-toc__link:hover {
  background: rgba(11, 43, 111, 0.04);
  color: var(--pp-blue);
  text-decoration: none;
}

.pp-toc__link.is-active {
  background: rgba(255, 179, 2, 0.12);
  color: var(--pp-navy);
  font-weight: 700;
}

.pp-toc__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(11, 43, 111, 0.06);
  color: var(--pp-blue);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-toc__link.is-active .pp-toc__num {
  background: var(--pp-primary);
  color: var(--pp-navy);
}

/* ── Legal content ── */
.pp-legal {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--pp-radius) + 2px);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--pp-shadow);
}

.pp-legal__intro h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--pp-navy);
  margin-bottom: 12px;
}

.pp-legal__intro > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pp-muted);
  margin-bottom: 24px;
  max-width: 760px;
}

.pp-callout {
  background: linear-gradient(165deg, #eff6ff 0%, #f8faff 100%);
  border-left: 4px solid var(--pp-blue);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pp-navy);
  margin-bottom: 32px;
}

.pp-legal section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #eef1f7;
  scroll-margin-top: 100px;
}

.pp-legal section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pp-legal h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--pp-navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.pp-legal h3 .pp-section-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pp-blue) 0%, var(--pp-navy) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pp-legal h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-navy);
  margin: 20px 0 10px;
}

.pp-legal p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--pp-muted);
  margin-bottom: 14px;
}

.pp-legal ul:not(.pp-rights):not(.pp-security) {
  padding-left: 22px;
  margin-bottom: 14px;
}

.pp-legal ul:not(.pp-rights):not(.pp-security) li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pp-muted);
  margin-bottom: 8px;
}

.pp-legal a {
  color: var(--pp-blue);
  font-weight: 600;
}

/* Privacy rights checklist */
.pp-rights {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.pp-rights li {
  font-size: 15px;
  font-weight: 600;
  color: var(--pp-navy);
  padding: 14px 16px 14px 44px;
  background: #f8f9fc;
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  position: relative;
  line-height: 1.5;
}

.pp-rights li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #15803d;
  font-size: 13px;
}

/* Security trust block */
.pp-security-wrap {
  background: linear-gradient(165deg, #f8faff 0%, #fff 100%);
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 22px 20px;
  margin: 16px 0;
}

.pp-security-wrap__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pp-security-wrap__head i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 43, 111, 0.08);
  color: var(--pp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pp-security-wrap__head span {
  font-size: 14px;
  font-weight: 700;
  color: var(--pp-navy);
}

.pp-security {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 576px) {
  .pp-security {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pp-security li {
  font-size: 14px;
  color: var(--pp-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}

.pp-security li::before {
  content: "\f023";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--pp-primary-dark);
  font-size: 12px;
}

/* ── Contact ── */
.pp-contact__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .pp-contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pp-contact__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pp-contact-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.pp-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 43, 111, 0.1);
}

.pp-contact-card i {
  font-size: 28px;
  color: var(--pp-blue);
  margin-bottom: 10px;
  display: block;
}

.pp-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-navy);
  margin-bottom: 8px;
}

.pp-contact-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-blue);
  text-decoration: none;
  word-break: break-word;
}

.pp-contact-card a:hover {
  text-decoration: underline;
}

.pp-contact__note {
  text-align: center;
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pp-muted);
}

/* ── FAQ ── */
.pp-faq .accordion-items {
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.pp-faq .accordion-buttons {
  font-size: 15px;
  font-weight: 600;
  padding: 18px 48px 18px 20px;
  color: var(--pp-navy);
  width: 100%;
  text-align: left;
  min-height: 56px;
  display: flex;
  align-items: center;
  background: transparent;
}

.pp-faq .accordion-buttons:not(.collapsed) {
  color: var(--pp-blue);
  background: rgba(11, 43, 111, 0.04);
}

.pp-faq .accordion-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--pp-muted);
  padding: 0 20px 18px;
}

/* ── Buttons ── */
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pp-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.pp-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.pp-btn--whatsapp:hover {
  background: #1fb855;
  color: #fff;
}

/* ── Floating ── */
.page-privacy .floating-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-privacy .floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.page-privacy .floating-contact a:hover {
  transform: translateY(-3px);
}

.page-privacy .floating-contact .btn-whatsapp { background: #25d366; }
.page-privacy .floating-contact .btn-telegram { background: #0088cc; }

.page-privacy .floating-contact.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 991.98px) {
  .pp-toc {
    margin-bottom: 8px;
  }

  .pp-toc__list {
    max-height: 220px;
    overflow-y: auto;
  }
}
