/* ==========================================================================
   WEALTH LAB — PRIVACY POLICY & COMPLIANCE STYLESHEET
   Design matches Wealth Lab Flutter Mobile Application
   Theme Support: Light & Dark Modes with Smooth Transitions
   Balanced Modern Typography (Legible, Proportional, No Chip Overflow)
   High-Grade Executive Print / PDF Export Styling (Zero Overlaps, Perfect Cuts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- CSS Variables & Color Tokens --- */
:root {
  /* Brand Palettes */
  --primary: #7E3AEE;
  --primary-accent: #6366F1;
  --primary-gradient: linear-gradient(135deg, #7E3AEE 0%, #6366F1 100%);
  --hero-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --shield-glow: rgba(16, 185, 129, 0.3);

  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 860px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  /* LIGHT THEME TOKENS */
  --bg-page: #F8F9FC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-surface-subtle: #F8FAFC;
  --border-color: #E5E7EB;
  --border-subtle: #F1F5F9;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  
  --nav-bg: rgba(248, 249, 252, 0.9);
  --nav-border: rgba(229, 231, 235, 0.85);
  
  --card-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.035), 0 2px 5px -1px rgba(0, 0, 0, 0.02);
  --card-hover-shadow: 0 10px 24px -4px rgba(126, 58, 238, 0.08);

  --accent-text: #7E3AEE;
  --banner-bg: rgba(99, 102, 241, 0.03);
  --banner-border: rgba(99, 102, 241, 0.09);
  --pill-bg: rgba(99, 102, 241, 0.08);
  --pill-text: #6366F1;
}

/* DARK THEME TOKENS (Wealth Lab Slate + Violet Ramp) */
[data-theme="dark"] {
  --bg-page: #0B0D12;
  --bg-surface: #141720;
  --bg-surface-elevated: #1D2029;
  --bg-surface-subtle: #161922;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --text-primary: #F1F3F7;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --nav-bg: rgba(11, 13, 18, 0.9);
  --nav-border: rgba(255, 255, 255, 0.08);

  --card-shadow: 0 4px 22px -2px rgba(0, 0, 0, 0.48);
  --card-hover-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.65), 0 0 14px rgba(126, 58, 238, 0.12);

  --accent-text: #A78BFA;
  --banner-bg: rgba(99, 102, 241, 0.05);
  --banner-border: rgba(99, 102, 241, 0.12);
  --pill-bg: rgba(167, 139, 250, 0.15);
  --pill-text: #A78BFA;

  --success-bg: rgba(16, 185, 129, 0.16);
  --warning-bg: rgba(245, 158, 11, 0.16);
  --danger-bg: rgba(239, 68, 68, 0.16);
  --info-bg: rgba(59, 130, 246, 0.16);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.925rem; /* ~14.8px balanced comfortable reading size */
  line-height: 1.62;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Screen Only Helper */
.screen-only {
  display: block;
}

/* Print Doc Header (Hidden on Screen) */
.print-doc-header {
  display: none;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* --- Navigation Bar --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(126, 58, 238, 0.25);
  background: var(--primary-gradient);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-accent);
  transform: translateY(-1px);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-print {
  display: none;
}

@media (min-width: 640px) {
  .btn-print {
    display: flex;
  }
}

/* --- Main Content Layout --- */
.page-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 22px 20px 60px 20px;
}

/* --- Hero Shield Header (Balanced Proportions) --- */
.hero-header {
  text-align: center;
  padding: 12px 0 24px 0;
}

.shield-badge-container {
  display: inline-flex;
  position: relative;
  margin-bottom: 16px;
}

.shield-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px var(--shield-glow);
  color: #FFFFFF;
}

.shield-badge svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.7rem; /* ~27px balanced */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.84rem; /* ~13.5px */
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

/* --- Safeguard Box --- */
.safeguard-card {
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin: 0 auto 26px auto;
  text-align: center;
}

.safeguard-title {
  font-family: var(--font-heading);
  font-size: 0.72rem; /* ~11.5px */
  font-weight: 700;
  letter-spacing: 1.0px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.safeguard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}

.safeguard-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.safeguard-divider {
  width: 1px;
  height: 64px;
  background: var(--border-color);
  align-self: center;
}

.safeguard-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.safeguard-icon-circle.emerald {
  background: var(--success-bg);
  color: var(--success);
}

.safeguard-icon-circle.amber {
  background: var(--warning-bg);
  color: var(--warning);
}

.safeguard-icon-circle.rose {
  background: var(--danger-bg);
  color: var(--danger);
}

.safeguard-icon-circle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.safeguard-headline {
  font-family: var(--font-heading);
  font-size: 0.88rem; /* ~14px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-align: center;
}

.safeguard-desc {
  font-family: var(--font-body);
  font-size: 0.8rem; /* ~12.8px */
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: center;
  max-width: 220px;
}

@media (max-width: 580px) {
  .safeguard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .safeguard-divider {
    display: none;
  }
  .safeguard-col {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
  }
  .safeguard-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .contact-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .contact-info {
    width: 100%;
  }
  .contact-email {
    font-size: clamp(0.85rem, 4.2vw, 1.02rem);
    white-space: nowrap;
  }
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Quick Navigation Chips Grid (Screen Only) --- */
.nav-section-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 12px;
  padding-left: 4px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

@media (min-width: 768px) {
  .quick-nav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}

.quick-nav-item:hover {
  border-color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.quick-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-nav-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.quick-nav-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* --- Section Cards --- */
.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease;
}

.section-card:hover {
  border-color: rgba(99, 102, 241, 0.28);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-wrapper svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem; /* ~18px */
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.card-intro {
  font-size: 0.92rem; /* ~14.7px */
  color: var(--text-secondary);
  line-height: 1.58;
  margin-bottom: 14px;
}

/* --- Bullet Items & Rows --- */
.policy-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.policy-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.915rem; /* ~14.6px */
  color: var(--text-secondary);
  line-height: 1.58;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.bullet-content strong {
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 4px;
}

/* Regional Blocks & Subtitles */
.compliance-block {
  margin-top: 14px;
}

.regional-subtitle {
  font-family: var(--font-heading);
  font-size: 0.94rem; /* ~15px */
  font-weight: 700;
  color: var(--accent-text);
  margin: 14px 0 6px 0;
}

/* ============================================================
   SINGLE-LINE FEATURE BADGES (Guaranteed Fit, Zero Overflow)
   ============================================================ */
.badge-row-container {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.badge-row-container::-webkit-scrollbar {
  display: none;
}

.badge-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.77rem; /* ~12.3px perfectly fits all 4 badges */
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

@media (max-width: 640px) {
  .badge-row {
    width: max-content;
  }
  .feature-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
  }
}

/* --- Interactive Compliance Status Grid --- */
.compliance-matrix {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0;
}

.compliance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: background 0.15s ease;
}

.compliance-row:last-child {
  border-bottom: none;
}

.compliance-row:hover {
  background: var(--bg-surface-elevated);
}

.compliance-left {
  display: flex;
  flex-direction: column;
}

.compliance-region {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.compliance-framework {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.compliance-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.compliance-tag.active {
  background: var(--success-bg);
  color: var(--success);
}

.compliance-tag.info {
  background: var(--info-bg);
  color: var(--info);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Contact & Support Box --- */
.contact-banner {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.contact-email {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(126, 58, 238, 0.25);
}

.copy-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* External Link Pill */
.external-link-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--primary-accent);
  text-decoration: underline;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 10px;
  transition: opacity 0.2s ease;
}

.external-link-card:hover {
  opacity: 0.85;
}

.external-link-card svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Back to Top Floating Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(126, 58, 238, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Screen Footer --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 36px 20px;
  margin-top: auto;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HIGH-GRADE EXECUTIVE PRINT STYLESHEET (Zero Overlaps, Clean Boundaries)
   ========================================================================== */
@media print {
  /* Page Definition */
  @page {
    size: A4 portrait;
    margin: 12mm 14mm 14mm 14mm;
  }

  /* Force exact color reproduction in browser engines */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide screen-specific interactive navigation and buttons */
  .screen-only,
  .site-nav,
  #scroll-progress,
  .nav-section-title,
  .quick-nav-grid,
  .back-to-top,
  .copy-btn,
  .btn-print,
  #theme-toggle-btn {
    display: none !important;
  }

  /* Base Paper Typography */
  body {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 9.5pt !important;
    line-height: 1.45 !important;
    -webkit-font-smoothing: antialiased;
  }

  .page-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Executive Print Document Header */
  .print-doc-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #7E3AEE !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .print-app-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    display: block !important;
  }

  .print-app-name,
  .print-app-title {
    font-family: var(--font-heading) !important;
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #1E1B4B !important;
    line-height: 1.1 !important;
  }

  .print-app-desc,
  .print-app-subtitle {
    font-size: 8pt !important;
    color: #64748B !important;
    font-weight: 500 !important;
  }

  .print-doc-meta {
    text-align: right;
    font-size: 8pt !important;
    color: #475569 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  .print-meta-line {
    white-space: nowrap !important;
  }

  .print-meta-line strong {
    color: #0F172A !important;
  }

  /* Compact Clean Hero in Print */
  .hero-header {
    padding: 0 0 10px 0 !important;
    text-align: center !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  /* Shield Badge above Your Trust & Privacy */
  .shield-badge-container {
    display: inline-flex !important;
    margin-bottom: 6px !important;
  }

  .shield-badge {
    width: 46px !important;
    height: 46px !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    margin: 0 auto !important;
  }

  .shield-badge svg {
    width: 24px !important;
    height: 24px !important;
    fill: #FFFFFF !important;
  }

  .hero-title {
    font-size: 14pt !important;
    color: #0F172A !important;
    margin-bottom: 2px !important;
  }

  .hero-subtitle {
    font-size: 8pt !important;
    color: #64748B !important;
    margin-bottom: 10px !important;
  }

  /* Safeguard Card in Print */
  .safeguard-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .safeguard-title {
    font-size: 7.5pt !important;
    margin-bottom: 6px !important;
    color: #7E3AEE !important;
  }

  .safeguard-grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr !important;
  }

  .safeguard-divider {
    height: 44px !important;
    background: #E2E8F0 !important;
  }

  .safeguard-icon-circle {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 3px !important;
  }

  .safeguard-icon-circle svg {
    width: 13px !important;
    height: 13px !important;
  }

  .safeguard-headline {
    font-size: 7.5pt !important;
    color: #0F172A !important;
    margin-bottom: 1px !important;
  }

  .safeguard-desc {
    font-size: 7pt !important;
    color: #64748B !important;
    line-height: 1.25 !important;
  }

  /* Section Cards in Print */
  .section-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
  }

  /* Card 1 fits cleanly on Page 1 */
  #data-storage {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Card 2 starts Page 2 cleanly */
  #google-admob {
    break-before: page !important;
    page-break-before: always !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Card 3 (Compliance): allow blocks to distribute cleanly with zero broken borders */
  #global-compliance {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin-top: 14px !important;
  }

  #global-compliance .card-header {
    border-bottom: 1.5px solid #7E3AEE !important;
    padding-bottom: 4px !important;
    margin-bottom: 8px !important;
  }

  .card-header {
    margin-bottom: 8px !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .card-icon-wrapper {
    width: 24px !important;
    height: 24px !important;
  }

  .card-icon-wrapper svg {
    width: 15px !important;
    height: 15px !important;
  }

  .card-title {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
    color: #0F172A !important;
  }

  .card-intro {
    font-size: 8pt !important;
    color: #475569 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }

  /* Bullet Items in Print */
  .policy-bullet-list {
    gap: 6px !important;
  }

  .policy-bullet-item {
    font-size: 8pt !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .bullet-dot {
    width: 4px !important;
    height: 4px !important;
    margin-top: 5px !important;
    background: #6366F1 !important;
  }

  .bullet-content strong {
    color: #0F172A !important;
    font-weight: 700 !important;
  }

  /* Keep Individual Regional Blocks Intact */
  .compliance-block {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 7px 10px !important;
    margin-top: 7px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .regional-subtitle {
    font-size: 8.5pt !important;
    color: #6D28D9 !important;
    margin: 0 0 3px 0 !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  /* Single-Line Feature Badges in Print */
  .badge-row-container {
    overflow: visible !important;
    margin-top: 8px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .badge-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .feature-badge {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    font-size: 6.8pt !important;
    padding: 3px 5px !important;
    color: #0F172A !important;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
  }

  /* Compliance Matrix in Print */
  .compliance-matrix {
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    margin: 8px 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .compliance-row {
    padding: 6px 10px !important;
    border-bottom: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
  }

  .compliance-region {
    font-size: 8pt !important;
    color: #0F172A !important;
  }

  .compliance-framework {
    font-size: 7.2pt !important;
    color: #64748B !important;
  }

  .compliance-tag {
    font-size: 7pt !important;
    padding: 2px 6px !important;
  }

  .compliance-tag.active {
    background: #DCFCE7 !important;
    color: #15803D !important;
  }

  /* Contact Support Box in Print */
  #contact-support {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-top: 10px !important;
  }

  .contact-banner {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-top: 6px !important;
  }

  .contact-icon-circle {
    width: 26px !important;
    height: 26px !important;
    background: #EEF2FF !important;
    color: #4F46E5 !important;
  }

  .contact-label {
    font-size: 7pt !important;
    color: #64748B !important;
  }

  .contact-email {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    white-space: nowrap !important;
  }

  /* External Links in Print */
  .external-link-card {
    font-size: 7.5pt !important;
    color: #4F46E5 !important;
    margin-top: 4px !important;
  }

  /* ZERO OVERLAP Document Footer in Print */
  .site-footer {
    display: block !important;
    border-top: 1px solid #CBD5E1 !important;
    background: transparent !important;
    padding: 12px 0 0 0 !important;
    margin-top: 16px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    clear: both !important;
  }

  .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
  }

  .footer-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
  }

  .footer-brand .brand-icon {
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    background: none !important;
    overflow: hidden !important;
  }

  .footer-brand .brand-icon img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .footer-brand-name {
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #0F172A !important;
  }

  .footer-disclaimer {
    display: block !important;
    font-size: 6.8pt !important;
    color: #64748B !important;
    line-height: 1.3 !important;
    max-width: 580px !important;
    margin: 0 auto !important;
  }

  .footer-copy {
    display: block !important;
    font-size: 6.5pt !important;
    color: #94A3B8 !important;
    margin-top: 2px !important;
  }
}
