/* ============================================================
   Privacy Policy — minimal custom CSS
   Layout, spacing, borders & typography use Bootstrap utilities.
   This file holds only what utilities cannot express:
     · CSS variables
     · Hero gradient + grid pattern (mirrors terms-condition.php)
     · Sticky pill-nav with backdrop blur and dynamic top offset
     · Pill number-badge + active/hover states
     · Color-coded section icons via [data-color]
     · Section dashed-ring effect
     · End-note gradient
   ============================================================ */
.pp-page {
  --pp-primary: #6f42c1;
  --pp-primary-deep: #5a2eb0;
  --pp-primary-soft: #f3eefb;
  --pp-bg-soft: #fafbfd;
  --pp-line: #e8ebf3;
  --pp-ink: #0f172a;
  --pp-ink-soft: #5b6478;
  --pp-nav-h: 88px;
  background: #fff;
}

/* Hero now uses the shared .au-hero component (assets/css/page-hero.css). */

/* ===== STICKY PILL NAV ===== */
.pp-pill-nav {
  position: sticky;
  top: var(--pp-nav-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  z-index: 50;
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .18);
}

/* Pill number-badge + interactive states */
.pp-pill {
  transition: all .18s ease;
  font-size: 12.5px;
  color: var(--pp-ink-soft);
}

.pp-pill .n {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--pp-primary);
  background: var(--pp-primary-soft);
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: .04em;
  transition: all .18s ease;
}

.pp-pill:hover {
  background: var(--pp-primary-soft);
  border-color: #d6c8ed;
  color: var(--pp-primary-deep);
}

.pp-pill:hover .n,
.pp-pill.active .n {
  background: var(--pp-primary);
  color: #fff;
}

.pp-pill.active {
  background: linear-gradient(90deg, var(--pp-primary-soft), #fff);
  border-color: var(--pp-primary);
  color: var(--pp-primary-deep);
}

/* ===== SECTIONS ===== */
.pp-sections {
  background: var(--pp-bg-soft);
}

.pp-sec-wrap {
  max-width: 880px;
}

.pp-sec {
  scroll-margin-top: 170px;
}

.pp-sec:last-child {
  border-bottom: 0 !important;
}

/* Section-header icons removed across all policy pages */
.pp-sec-icon {
  display: none !important;
}

/* Color-coded icon (with dashed ring) per section */
.pp-sec-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--icon-bg, var(--pp-primary-soft));
  color: var(--icon-color, var(--pp-primary));
  border: 1px solid var(--icon-border, #d6c8ed);
}

.pp-sec-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  border: 1px dashed var(--icon-color, var(--pp-primary));
  opacity: .25;
}

.pp-sec[data-color="violet"] {
  --icon-bg: #f3eefb;
  --icon-color: #6f42c1;
  --icon-border: #e3d8f3;
}

.pp-sec[data-color="cyan"] {
  --icon-bg: #ecfeff;
  --icon-color: #0891b2;
  --icon-border: #cffafe;
}

.pp-sec[data-color="emerald"] {
  --icon-bg: #ecfdf5;
  --icon-color: #059669;
  --icon-border: #a7f3d0;
}

.pp-sec[data-color="amber"] {
  --icon-bg: #fef3c7;
  --icon-color: #b45309;
  --icon-border: #fde68a;
}

.pp-sec[data-color="rose"] {
  --icon-bg: #ffe4e6;
  --icon-color: #e11d48;
  --icon-border: #fecdd3;
}

.pp-sec[data-color="blue"] {
  --icon-bg: #dbeafe;
  --icon-color: #2563eb;
  --icon-border: #bfdbfe;
}

.pp-sec-eyebrow {
  font-size: 11.5px;
  letter-spacing: .16em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--icon-color, var(--pp-primary));
}

.pp-sec-title {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -.012em;
  line-height: 1.2;
}

.pp-sec-body p {
  color: var(--pp-ink-soft);
  line-height: 1.85;
}

.pp-sec-body p:first-of-type::first-letter {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--pp-ink);
}

/* ===== END NOTE ===== */
.pp-end {
  background: linear-gradient(135deg, #f3eefb 0%, #ecfeff 100%);
  border: 1px solid #e3d8f3;
}

.pp-end strong {
  color: var(--pp-primary-deep);
}

/* ===== LIST + SUB-HEADING TEXT ===== */
.pp-sec-body ul li,
.pp-sec-body ol li {
  color: var(--pp-ink-soft);
  line-height: 1.7;
}

.pp-sec-body h3 {
  color: var(--pp-ink);
}

/* ===== CALLOUT NOTE (Important / Anti-Fraud) ===== */
.pp-note {
  background: var(--pp-primary-soft);
  border-color: var(--pp-primary) !important;
}

.pp-note p {
  color: var(--pp-ink) !important;
}

.pp-note strong {
  color: var(--pp-primary-deep);
}

/* ===== TABLES — modern, attractive & fully responsive ===== */
.pp-table-wrap {
  margin: 0.5rem 0 0;
  border: 1px solid var(--pp-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px -24px rgba(15, 23, 42, .4);
}

.pp-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.pp-table thead th {
  background: linear-gradient(180deg, #f7f4fd 0%, #f1ebfb 100%);
  color: var(--pp-ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pp-line);
  white-space: nowrap;
}

.pp-table tbody td {
  padding: 13px 18px;
  color: var(--pp-ink-soft);
  border-top: 1px solid var(--pp-line);
  vertical-align: middle;
  line-height: 1.55;
}

.pp-table tbody tr {
  transition: background .15s ease;
}

.pp-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.pp-table tbody tr:hover {
  background: var(--pp-primary-soft);
}

/* Emphasise the first (label) column */
.pp-table tbody td:first-child {
  color: var(--pp-ink);
  font-weight: 600;
}

/* Status badge (Refundable? column) */
.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.pp-badge i {
  font-size: 0.85em;
}

.pp-badge-no {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Processing-time pill */
.pp-time {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--pp-primary-deep);
  background: var(--pp-primary-soft);
  padding: 3px 11px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ===== MOBILE — stack each row into a labelled card ===== */
@media (max-width: 767.98px) {
  .pp-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  /* Hide the header row but keep it for screen readers */
  .pp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .pp-table,
  .pp-table tbody,
  .pp-table tr,
  .pp-table td {
    display: block;
    width: 100%;
  }

  .pp-table tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 10px 26px -20px rgba(15, 23, 42, .45);
  }

  .pp-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 15px;
    text-align: right;
    border-top: 1px solid var(--pp-line);
  }

  .pp-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    text-align: left;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pp-ink);
  }

  .pp-table tbody td:first-child {
    border-top: 0;
    background: var(--pp-primary-soft);
    font-size: 0.97rem;
  }

  .pp-table tbody td:first-child::before {
    color: var(--pp-primary-deep);
  }
}

/* Mobile niceties — narrow viewports */
@media (max-width: 575.98px) {
  .pp-sec-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 12px;
  }

  .pp-sec-icon::after {
    border-radius: 14px;
  }
}