/* ==========================================================================
   Privacy Policy Styles - AlMohamy Pro / برنامج المحامي
   Compatible with Microsoft Store & Partner Center Requirements (Policy 10.5.1)
   ========================================================================== */

.privacy-page-wrapper {
  background-color: #f8fafc;
  min-height: 100vh;
  padding-bottom: 5rem;
}

/* Hero Banner */
.privacy-banner {
  background: var(--gradient-hero, linear-gradient(135deg, #0a1a3f 0%, #0f2557 50%, #1e3a8a 100%));
  color: #ffffff;
  padding: 5rem 1rem 3.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.privacy-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(212, 168, 83, 0.15), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(37, 99, 235, 0.2), transparent 45%);
}

.privacy-banner .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 83, 0.15);
  color: var(--color-gold, #d4a853);
  border: 1px solid rgba(212, 168, 83, 0.35);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.privacy-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.privacy-banner .privacy-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.privacy-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.privacy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.privacy-meta-item i {
  color: var(--color-gold, #d4a853);
}

/* Language Switcher Controls */
.privacy-lang-controls {
  margin-top: 2rem;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem;
  border-radius: 999px;
  gap: 0.35rem;
}

.privacy-lang-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.privacy-lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.privacy-lang-btn.active {
  background: var(--color-gold, #d4a853);
  color: #0a1a3f;
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.35);
}

/* Quick Highlights Grid */
.privacy-highlights {
  max-width: 1100px;
  margin: -2.5rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.highlight-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 37, 87, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 37, 87, 0.12);
  border-color: #cbd5e1;
}

.highlight-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.highlight-icon.gold {
  background: rgba(212, 168, 83, 0.15);
  color: #d4a853;
}

.highlight-icon.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.highlight-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.highlight-icon.navy {
  background: rgba(15, 37, 87, 0.12);
  color: #0f2557;
}

.highlight-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2557;
  margin-bottom: 0.4rem;
}

.highlight-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Main Container Layout */
.privacy-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Sidebar Navigation */
.privacy-sidebar {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 37, 87, 0.04);
}

.privacy-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2557;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-sidebar h3 i {
  color: var(--color-gold, #d4a853);
}

.privacy-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-nav-links li {
  margin-bottom: 0.5rem;
}

.privacy-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.privacy-nav-links a:hover,
.privacy-nav-links a.active {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 600;
}

.privacy-nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #0f2557;
  font-size: 0.75rem;
  font-weight: 700;
}

.privacy-nav-links a:hover .privacy-nav-num,
.privacy-nav-links a.active .privacy-nav-num {
  background: #2563eb;
  color: #ffffff;
}

.privacy-sidebar-contact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.privacy-sidebar-contact .btn {
  width: 100%;
  justify-content: center;
}

/* Privacy Content Sections */
.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.privacy-section-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 37, 87, 0.04);
  position: relative;
  transition: border-color 0.25s ease;
}

.privacy-section-card:hover {
  border-color: #cbd5e1;
}

.privacy-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.privacy-section-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary, linear-gradient(135deg, #0f2557 0%, #2563eb 100%));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.privacy-section-title-wrap {
  flex-grow: 1;
}

.privacy-section-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f2557;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.privacy-section-title-wrap .privacy-en-title {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.privacy-section-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #334155;
}

.privacy-section-body p {
  margin-bottom: 1rem;
}

.privacy-section-body p:last-child {
  margin-bottom: 0;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.privacy-list li {
  position: relative;
  padding-inline-start: 2rem;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.privacy-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset-inline-start: 0;
  top: 0.15rem;
  color: #10b981;
  font-size: 0.9rem;
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-list strong {
  color: #0f2557;
}

/* Callout Box */
.privacy-callout {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.privacy-callout.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.privacy-callout.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.privacy-callout.warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.privacy-callout-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.privacy-callout-content {
  font-size: 0.95rem;
  line-height: 1.65;
}

.privacy-callout-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Tag / Chip Pills */
.privacy-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #334155;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.privacy-pill code {
  font-family: Consolas, monospace;
  color: #2563eb;
  background: transparent;
  padding: 0;
}

/* Publisher & Certification Meta Box */
.publisher-meta-box {
  background: linear-gradient(135deg, #0a1a3f 0%, #0f2557 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 2.25rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 37, 87, 0.2);
}

.publisher-meta-box::after {
  content: '\f3c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset-inline-end: 2rem;
  bottom: -1rem;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.publisher-meta-box h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.publisher-meta-box h3 i {
  color: var(--color-gold, #d4a853);
}

.publisher-meta-box p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.publisher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.publisher-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.1rem;
}

.publisher-item-label {
  font-size: 0.8rem;
  color: var(--color-gold, #d4a853);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.publisher-item-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.publisher-item-val a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.publisher-item-val a:hover {
  color: var(--color-gold, #d4a853);
}

/* Language view toggles */
.privacy-lang-en {
  display: none;
  direction: ltr;
  text-align: left;
}

.privacy-lang-ar {
  display: block;
  direction: rtl;
  text-align: right;
}

/* Dual Mode (Bilingual view) */
body.privacy-mode-dual .privacy-lang-ar,
body.privacy-mode-dual .privacy-lang-en {
  display: block;
}

body.privacy-mode-dual .privacy-dual-divider {
  display: block;
  margin: 1.5rem 0;
  border-top: 1px dashed #cbd5e1;
  position: relative;
}

body.privacy-mode-dual .privacy-dual-divider::after {
  content: 'English Version Below / النسخة الإنجليزية بالأسفل';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Active Mode Classes on Body */
body.privacy-mode-en .privacy-lang-ar {
  display: none;
}
body.privacy-mode-en .privacy-lang-en {
  display: block;
}
body.privacy-mode-en .privacy-layout {
  direction: ltr;
}
body.privacy-mode-en .privacy-sidebar {
  text-align: left;
}

body.privacy-mode-ar .privacy-lang-ar {
  display: block;
}
body.privacy-mode-ar .privacy-lang-en {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  
  .privacy-sidebar {
    display: none;
  }

  .privacy-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .privacy-highlights {
    grid-template-columns: 1fr;
  }

  .privacy-section-card {
    padding: 1.5rem;
  }

  .privacy-banner {
    padding: 4rem 1rem 2.5rem;
  }

  .privacy-lang-controls {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .privacy-lang-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
