/* ============================================================================
   PMDG Technologies — Privacy Policy Stylesheet (assets/css/privacy.css)
   ========================================================================= */

:root {
  --pv-primary: #0047ff;
  --pv-primary-hover: #0036c7;
  --pv-primary-soft: rgba(0, 71, 255, 0.08);
  --pv-primary-border: rgba(0, 71, 255, 0.2);
  --pv-navy: #01022e;
  --pv-navy-light: #090e4a;
  --pv-accent: #00b2ff;
  --pv-text: #4a5568;
  --pv-heading: #0f172a;
  --pv-muted: #64748b;
  --pv-border: #e2e8f0;
  --pv-border-soft: #edf2f7;
  --pv-bg-light: #f8fafd;
  --pv-card-bg: #ffffff;
  --pv-shadow-sm: 0 2px 8px rgba(1, 2, 46, 0.04);
  --pv-shadow-md: 0 10px 25px -5px rgba(1, 2, 46, 0.08), 0 8px 10px -6px rgba(1, 2, 46, 0.04);
  --pv-shadow-lg: 0 20px 35px -10px rgba(0, 71, 255, 0.12);
  --pv-radius-sm: 8px;
  --pv-radius-md: 14px;
  --pv-radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

/* ============================================================================
   Top Metadata & Highlights Bar
   ========================================================================= */

.privacy-page-wrap {
  background-color: var(--pv-bg-light);
  color: var(--pv-text);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: visible;
  padding-bottom: 80px;
}

/* Metadata Bar inside Breadcrumb / Sub-hero */
.pv-meta-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--pv-border);
  padding: 16px 0;
  box-shadow: var(--pv-shadow-sm);
}

.pv-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.pv-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pv-muted);
}

.pv-meta-item strong {
  color: var(--pv-heading);
}

.pv-meta-item i {
  color: var(--pv-primary);
  font-size: 1rem;
}

.pv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f9f0;
  color: #0d8a4e;
  border: 1px solid #b7f0d0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.775rem;
}

.pv-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d8a4e;
}

/* Highlights Section */
.pv-highlights-section {
  padding: 45px 0 25px;
}

.pv-highlight-card {
  background: #ffffff;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: 24px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--pv-shadow-sm);
  position: relative;
  overflow: hidden;
}

.pv-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pv-primary), var(--pv-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pv-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pv-shadow-md);
  border-color: var(--pv-primary-border);
}

.pv-highlight-card:hover::before {
  opacity: 1;
}

.pv-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pv-primary-soft);
  color: var(--pv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.pv-highlight-card:hover .pv-highlight-icon {
  background: var(--pv-primary);
  color: #ffffff;
}

.pv-highlight-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin-bottom: 8px;
}

.pv-highlight-desc {
  font-size: 0.85rem;
  color: var(--pv-text);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================================
   Main Layout: Sidebar & Content
   ========================================================================= */

.pv-main-section {
  padding: 30px 0 60px;
}

.pv-main-section .row {
  align-items: stretch;
}

.pv-main-section aside {
  position: relative;
}

/* Sidebar Wrapper - Clean Fixed Sticky Positioning */
.pv-sidebar-sticky {
  position: sticky;
  top: 105px;
  z-index: 10;
  margin-bottom: 30px;
}

.pv-toc-card {
  background: #ffffff;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: 22px 20px;
  box-shadow: var(--pv-shadow-sm);
  display: flex;
  flex-direction: column;
}

.pv-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--pv-border-soft);
}

.pv-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-toc-title i {
  color: var(--pv-primary);
}

/* Search within policy */
.pv-toc-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.pv-toc-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 0.825rem;
  font-family: inherit;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-sm);
  background: var(--pv-bg-light);
  color: var(--pv-heading);
  outline: none;
  transition: all 0.2s ease;
}

.pv-toc-search-input:focus {
  border-color: var(--pv-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.12);
}

.pv-toc-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pv-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Nav Link List */
.pv-toc-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 4px;
}

.pv-toc-nav::-webkit-scrollbar {
  width: 5px;
}
.pv-toc-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.pv-toc-item {
  margin-bottom: 4px;
}

.pv-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.835rem;
  color: var(--pv-text);
  border-radius: var(--pv-radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.pv-toc-link span.num {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--pv-muted);
  min-width: 20px;
}

.pv-toc-link:hover {
  background: var(--pv-primary-soft);
  color: var(--pv-primary);
  border-left-color: var(--pv-primary);
}

.pv-toc-link.active {
  background: var(--pv-primary-soft);
  color: var(--pv-primary);
  font-weight: 600;
  border-left-color: var(--pv-primary);
}

.pv-toc-link.active span.num {
  color: var(--pv-primary);
}

/* Sidebar Quick Actions */
.pv-sidebar-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pv-border-soft);
}

.pv-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: var(--pv-radius-sm);
  cursor: pointer;
  border: 1px solid var(--pv-border);
  background: #ffffff;
  color: var(--pv-heading);
  transition: all 0.2s ease;
  text-decoration: none;
}

.pv-action-btn:hover {
  background: var(--pv-primary);
  color: #ffffff;
  border-color: var(--pv-primary);
}

/* DPO Support Widget */
.pv-dpo-card {
  background: linear-gradient(145deg, #01022e, #090e4a);
  color: #ffffff;
  border-radius: var(--pv-radius-md);
  padding: 22px;
  box-shadow: var(--pv-shadow-md);
  position: relative;
  overflow: hidden;
}

.pv-dpo-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 178, 255, 0.25) 0%, rgba(0, 178, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pv-dpo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--pv-accent);
  margin-bottom: 12px;
}

.pv-dpo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.pv-dpo-desc {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pv-dpo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--pv-navy);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pv-dpo-link:hover {
  background: var(--pv-accent);
  color: #ffffff;
}

/* ============================================================================
   Policy Content Body
   ========================================================================= */

.pv-content-card {
  background: #ffffff;
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-lg);
  padding: 40px;
  box-shadow: var(--pv-shadow-sm);
}

.pv-section {
  scroll-margin-top: 120px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--pv-border-soft);
}

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

/* Section Header */
.pv-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.pv-sec-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pv-primary);
  background: var(--pv-primary-soft);
  border: 1px solid var(--pv-primary-border);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pv-sec-title-wrap {
  flex: 1;
}

.pv-sec-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin: 0 0 4px;
  line-height: 1.35;
}

.pv-sec-sub {
  font-size: 0.85rem;
  color: var(--pv-muted);
  margin: 0;
}

/* Body Elements */
.pv-text {
  font-size: 0.935rem;
  line-height: 1.75;
  color: var(--pv-text);
  margin-bottom: 16px;
}

.pv-text strong {
  color: var(--pv-heading);
}

.pv-subheading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin: 24px 0 12px;
}

/* Bullet list styled */
.pv-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.pv-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--pv-text);
}

.pv-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--pv-primary);
  font-size: 0.9rem;
}

/* Callout Boxes */
.pv-callout {
  border-radius: var(--pv-radius-md);
  padding: 20px 22px;
  margin: 22px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.pv-callout i {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pv-callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.pv-callout-info i {
  color: #2563eb;
}

.pv-callout-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.pv-callout-success i {
  color: #16a34a;
}

.pv-callout-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.pv-callout-warning i {
  color: #d97706;
}

/* Tables */
.pv-table-wrap {
  overflow-x: auto;
  border-radius: var(--pv-radius-md);
  border: 1px solid var(--pv-border);
  margin: 20px 0 25px;
  background: #ffffff;
}

.pv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.pv-table th {
  background: var(--pv-bg-light);
  color: var(--pv-heading);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--pv-border);
  white-space: nowrap;
}

.pv-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pv-border-soft);
  color: var(--pv-text);
  line-height: 1.6;
  vertical-align: top;
}

.pv-table tr:last-child td {
  border-bottom: none;
}

.pv-table tr:hover td {
  background: rgba(248, 250, 253, 0.6);
}

/* Rights Grid */
.pv-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.pv-right-card {
  background: var(--pv-bg-light);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-sm);
  padding: 18px;
  transition: border-color 0.2s ease;
}

.pv-right-card:hover {
  border-color: var(--pv-primary-border);
}

.pv-right-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-right-card h5 i {
  color: var(--pv-primary);
  font-size: 0.95rem;
}

.pv-right-card p {
  font-size: 0.835rem;
  color: var(--pv-text);
  line-height: 1.55;
  margin: 0;
}

/* Contact Office Cards */
.pv-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.pv-office-card {
  background: var(--pv-bg-light);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.pv-office-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--pv-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.pv-office-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin-bottom: 12px;
}

.pv-office-detail {
  font-size: 0.875rem;
  color: var(--pv-text);
  line-height: 1.6;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pv-office-detail i {
  color: var(--pv-primary);
  margin-top: 4px;
  font-size: 0.9rem;
}

/* FAQ or Accordion Inside Privacy */
.pv-accordion-item {
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
}

.pv-accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pv-bg-light);
  transition: background 0.2s ease;
  user-select: none;
}

.pv-accordion-header:hover {
  background: #f1f5f9;
}

.pv-accordion-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pv-heading);
  margin: 0;
}

.pv-accordion-body {
  padding: 18px 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--pv-text);
  border-top: 1px solid var(--pv-border);
  display: none;
}

.pv-accordion-item.active .pv-accordion-body {
  display: block;
}

.pv-accordion-item.active .pv-accordion-header i {
  transform: rotate(180deg);
}

.pv-accordion-header i {
  transition: transform 0.2s ease;
  color: var(--pv-muted);
}

/* ============================================================================
   Responsive Breakpoints
   ========================================================================= */

@media (max-width: 991px) {
  .pv-content-card {
    padding: 28px 20px;
  }
  .pv-rights-grid {
    grid-template-columns: 1fr;
  }
  .pv-contact-grid {
    grid-template-columns: 1fr;
  }
  .pv-sidebar-sticky {
    position: static;
    margin-bottom: 40px;
  }
  .pv-toc-nav {
    max-height: 320px;
  }
}

@media (max-width: 576px) {
  .pv-content-card {
    padding: 20px 16px;
    border-radius: var(--pv-radius-md);
  }
  .pv-sec-title {
    font-size: 1.2rem;
  }
  .pv-section {
    scroll-margin-top: 90px;
    padding-bottom: 26px;
    margin-bottom: 26px;
  }
  .pv-meta-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================================
   Print Media Styles (for "Print / Save PDF" feature)
   ========================================================================= */

@media print {
  header, footer, .breadcrumb__area, .pv-meta-bar, .pv-highlights-section,
  .pv-sidebar-sticky, #preloader, .pv-action-btn, .pv-toc-search-wrap {
    display: none !important;
  }
  body, .privacy-page-wrap, .pv-content-card {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .pv-section {
    page-break-inside: avoid;
    border-bottom: 1px solid #ccc !important;
    padding: 20px 0 !important;
  }
  .pv-sec-badge {
    border: 1px solid #333 !important;
    color: #000 !important;
  }
  a {
    text-decoration: underline !important;
    color: #000 !important;
  }
}
