/* ============================================================
   HealthHelp AI — Privacy Policy Page Styles
   Extends styles.css design tokens
   ============================================================ */

/* ── Hero ── */
.pp-hero {
  background: var(--grad);
  color: #fff;
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.pp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 100%, rgba(18,74,163,.35), transparent),
    radial-gradient(ellipse 500px 350px at 80% 20%, rgba(13,148,136,.15), transparent);
  pointer-events: none;
}
.pp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.pp-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.pp-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.pp-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  max-width: 500px;
}
.pp-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.pp-meta-item svg {
  color: rgba(255,255,255,.5);
}

/* ── Layout: Sidebar + Content ── */
.pp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 96px;
  align-items: start;
}

/* ── Table of Contents ── */
.pp-toc {
  position: sticky;
  top: 100px;
}
.pp-toc-inner {
  padding: 24px;
  background: var(--subtle);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}
.pp-toc h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.pp-toc ol {
  list-style: none;
  counter-reset: toc;
}
.pp-toc ol li {
  counter-increment: toc;
}
.toc-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  transition: all .15s ease;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -1px;
}
.toc-link::before {
  content: counter(toc) ". ";
  font-weight: 600;
  color: rgba(91,107,131,.5);
}
.toc-link:hover {
  color: var(--text);
}
.toc-link.active {
  color: var(--blue-c);
  border-left-color: var(--blue-c);
  font-weight: 600;
}
.toc-link.active::before {
  color: var(--blue-c);
}

/* ── Main Content ── */
.pp-content {
  max-width: 780px;
}

/* ── Intro Card ── */
.pp-intro-card {
  padding: 32px;
  background: var(--subtle);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  margin-bottom: 48px;
  font-size: 15px;
  line-height: 1.7;
}
.pp-intro-card p {
  margin-bottom: 14px;
}
.pp-intro-card p:last-child { margin-bottom: 0; }
.pp-intro-card ul { margin: 0 0 14px 1.2em; padding: 0; }
.pp-intro-card ul li { margin-bottom: 6px; line-height: 1.65; }
.pp-intro-card .pp-callout { margin-top: 20px; margin-bottom: 0; }

/* ── Section ── */
.pp-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.pp-section:last-child {
  border-bottom: none;
}
.pp-section-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue-c);
  opacity: .6;
  margin-bottom: 8px;
}
.pp-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.pp-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}
.pp-section h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pp-section p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a4a63;
  margin-bottom: 14px;
}
.pp-section ul, .pp-section ol {
  padding-left: 0;
  margin-bottom: 16px;
}
.pp-section ul li, .pp-section ol.pp-numbered li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a4a63;
}
.pp-section ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-c);
  opacity: .5;
}
.pp-section ol.pp-numbered {
  counter-reset: steps;
  list-style: none;
}
.pp-section ol.pp-numbered li {
  counter-increment: steps;
}
.pp-section ol.pp-numbered li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Negative list (with ✕ markers) */
.pp-list-negative li::before {
  content: '✕';
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  opacity: 1;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  top: 4px;
  left: 0;
}

/* Highlighted section */
.pp-section-highlight {
  background: linear-gradient(135deg, rgba(8,26,58,.02), rgba(18,74,163,.04));
  border-radius: var(--r-xl);
  padding: 40px 32px;
  margin: 8px -32px;
  border-bottom: none;
}
.pp-section-highlight + .pp-section {
  border-top: none;
}

/* ── Link ── */
.pp-link {
  color: var(--blue-c);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.pp-link:hover {
  color: var(--blue-600);
}

/* ── Emphasis ── */
.pp-emphasis {
  font-style: italic;
  padding: 14px 20px;
  background: var(--subtle);
  border-left: 3px solid var(--blue-c);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--muted) !important;
  font-size: 14px !important;
}

/* ── Callouts ── */
.pp-callout {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.65;
}
.pp-callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pp-callout-body {
  flex: 1;
}
.pp-callout-body p {
  font-size: 14px;
  margin-bottom: 0;
  color: inherit;
}

.pp-callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.pp-callout-note {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
}
.pp-callout-important {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.pp-callout-success {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #86efac;
  color: #14532d;
}

/* ── Use-case Grid ── */
.pp-use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.pp-use-card {
  padding: 20px;
  background: var(--subtle);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: var(--t);
}
.pp-use-card:hover {
  border-color: #c0cbe0;
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.pp-use-icon {
  font-size: 24px;
  margin-bottom: 10px;
}
.pp-use-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.pp-use-card p {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ── Rights Grid ── */
.pp-rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}
.pp-right-card {
  padding: 18px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: var(--t);
}
.pp-right-card:hover {
  border-color: #b4c2db;
  box-shadow: var(--sh-sm);
}
.pp-right-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.pp-right-card p {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ── Security Grid ── */
.pp-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.pp-security-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--subtle);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.pp-security-item strong {
  font-size: 13px;
  color: var(--text);
}
.pp-security-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Tables ── */
.pp-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pp-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--subtle);
  border-bottom: 1px solid var(--border);
}
.pp-table td {
  padding: 12px 16px;
  color: #3a4a63;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.pp-table tr:last-child td {
  border-bottom: none;
}
.pp-table code {
  background: rgba(18,74,163,.07);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--blue-c);
}

/* ── Contact Grid ── */
.pp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.pp-contact-card {
  padding: 22px;
  background: var(--subtle);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.pp-contact-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.pp-contact-card p {
  font-size: 14px !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pp-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pp-toc {
    position: relative;
    top: 0;
    margin-bottom: 32px;
  }
  .pp-toc-inner {
    max-height: 260px;
    overflow-y: auto;
  }
  .pp-section-highlight {
    margin: 8px -16px;
    padding: 28px 20px;
  }
}

@media (max-width: 600px) {
  .pp-hero {
    padding: 120px 0 48px;
  }
  .pp-hero h1 {
    font-size: 1.75rem;
  }
  .pp-meta {
    flex-direction: column;
    gap: 8px;
  }
  .pp-use-grid,
  .pp-rights-grid,
  .pp-security-grid,
  .pp-contact-grid {
    grid-template-columns: 1fr;
  }
  .pp-section h2 {
    font-size: 1.25rem;
  }
  .pp-section-highlight {
    margin: 8px -12px;
    padding: 24px 16px;
  }
  .pp-intro-card {
    padding: 20px;
  }
}

@media print {
  .nav, .pp-toc, .footer { display: none !important; }
  .pp-hero {
    background: #fff !important;
    color: #000 !important;
    padding: 0 0 24px;
  }
  .pp-hero h1, .pp-subtitle, .pp-meta-item { color: #000 !important; }
  .pp-layout { display: block; padding-top: 0; }
  .pp-content { max-width: 100%; }
  .pp-section { break-inside: avoid; page-break-inside: avoid; }
  a[href]::after { content: none !important; }
}
