/* ===================================================
   Privacy Policy Page Styles - Arab Ware Doz
   =================================================== */

/* Page Root */
.privacy-page-root {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ---------------------------------------------------
   1. Privacy Hero Section (Clearance below Navbar)
   --------------------------------------------------- */
.privacy-hero {
  /* Generous clearance space under the fixed navbar */
  padding-top: 220px;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93, 216, 209, 0.12);
  border: 1px solid rgba(93, 216, 209, 0.4);
  color: #5dd8d1;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(93, 216, 209, 0.15);
}

.privacy-title {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.privacy-subtitle {
  color: #a8b2d1;
  font-size: 1.1rem;
  max-width: 820px;
  margin: 0 auto 18px auto;
  line-height: 1.8;
}

.privacy-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #8892b0;
  font-size: 0.9rem;
}

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

.privacy-meta-item i {
  color: #5dd8d1;
}

.privacy-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-privacy-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-privacy-action:hover {
  background: rgba(93, 216, 209, 0.2);
  border-color: #5dd8d1;
  color: #5dd8d1;
}

/* ---------------------------------------------------
   2. Body Section & Layout
   --------------------------------------------------- */
/* Crucial: styles.css has "main { overflow: hidden; }" which prevents position: sticky from working */
main,
.privacy-page-root,
.privacy-section-body,
.privacy-section-body .container,
.privacy-wrapper {
  overflow: visible !important;
}

.privacy-section-body {
  padding-bottom: 90px;
}

.privacy-wrapper {
  display: flex !important;
  align-items: flex-start !important;
  gap: 36px;
  position: relative;
  width: 100%;
}

/* ---------------------------------------------------
   3. Sticky Sidebar Navigation (تثبيت الفهرس فقط)
   --------------------------------------------------- */
.privacy-sidebar {
  flex: 0 0 310px;
  width: 310px;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 130px !important; /* Pinned below the fixed navbar */
  align-self: flex-start !important;
  z-index: 5;
  background: rgba(15, 28, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 22px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  /* Completely hide scrollbars on the sidebar */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.privacy-sidebar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.privacy-sidebar-title {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-sidebar-title i {
  color: #5dd8d1;
}

.privacy-nav-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 0;
}

.privacy-nav-link {
  color: #a8b2d1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.privacy-nav-link span.num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5dd8d1;
  background: rgba(93, 216, 209, 0.14);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.privacy-nav-link:hover,
.privacy-nav-link.active {
  background: rgba(93, 216, 209, 0.16);
  color: #ffffff;
}

[dir="rtl"] .privacy-nav-link:hover,
[dir="rtl"] .privacy-nav-link.active {
  transform: translateX(-4px);
}

[dir="ltr"] .privacy-nav-link:hover,
[dir="ltr"] .privacy-nav-link.active {
  transform: translateX(4px);
}

.privacy-nav-link.active span.num {
  background: #5dd8d1;
  color: #0b1d26;
}

/* ---------------------------------------------------
   4. Natural Flow Content Area (لا أشرطة تمرير داخلية)
   --------------------------------------------------- */
.privacy-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  /* Natural height, no overflow clipping, no inner scrollbars */
  overflow: visible !important;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Ensure no scrollbar appears on privacy-content */
.privacy-content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ---------------------------------------------------
   5. Privacy Card Styles
   --------------------------------------------------- */
.privacy-card {
  background: rgba(15, 28, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 34px 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  scroll-margin-top: 130px; /* Offset for smooth scroll under navbar */
}

.privacy-card:hover {
  border-color: rgba(93, 216, 209, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.privacy-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.privacy-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(93, 216, 209, 0.25), rgba(23, 78, 198, 0.25));
  border: 1px solid rgba(93, 216, 209, 0.4);
  color: #5dd8d1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.privacy-card-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.privacy-card-body {
  color: #ccd6f6;
  font-size: 1rem;
  line-height: 1.85;
}

.privacy-card-body p {
  margin-bottom: 15px;
}

.privacy-subheading {
  color: #5dd8d1;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-list {
  margin-bottom: 16px;
}

[dir="rtl"] .privacy-list {
  padding-right: 22px;
  padding-left: 0;
}

[dir="ltr"] .privacy-list {
  padding-left: 22px;
  padding-right: 0;
}

.privacy-list li {
  margin-bottom: 10px;
  list-style-type: disc !important;
  color: #c0cbe6;
  line-height: 1.7;
}

.privacy-list li strong {
  color: #ffffff;
}

/* Feature Grid inside cards */
.privacy-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.privacy-feature-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.privacy-feature-box:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(93, 216, 209, 0.3);
}

.privacy-feature-box h5 {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-feature-box h5 i {
  color: #5dd8d1;
}

.privacy-feature-box p {
  color: #a8b2d1;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Alert Box */
.privacy-alert-box {
  background: rgba(23, 78, 198, 0.16);
  border-radius: 8px;
  padding: 15px 18px;
  margin: 18px 0;
  color: #ccd6f6;
  font-size: 0.96rem;
}

[dir="rtl"] .privacy-alert-box {
  border-right: 4px solid #5dd8d1;
}

[dir="ltr"] .privacy-alert-box {
  border-left: 4px solid #5dd8d1;
}

.privacy-alert-box strong {
  color: #5dd8d1;
}

/* Contact Card at Bottom */
.privacy-contact-card {
  background: linear-gradient(135deg, rgba(23, 78, 198, 0.3) 0%, rgba(93, 216, 209, 0.18) 100%);
  border: 1px solid rgba(93, 216, 209, 0.45);
  border-radius: 20px;
  padding: 38px 32px;
}

.privacy-contact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 26px;
}

/* Row 1: 3 items (each takes 2 of 6 columns) */
.privacy-contact-item:nth-child(1),
.privacy-contact-item:nth-child(2),
.privacy-contact-item:nth-child(3) {
  grid-column: span 2;
}

/* Row 2: 2 items (each takes 3 of 6 columns) - perfectly filling the bottom space */
.privacy-contact-item:nth-child(4),
.privacy-contact-item:nth-child(5) {
  grid-column: span 3;
}

.privacy-contact-item {
  background: rgba(15, 28, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.privacy-contact-item:hover {
  background: rgba(15, 28, 48, 0.92);
  border-color: rgba(93, 216, 209, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.privacy-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(93, 216, 209, 0.2);
  border: 1px solid rgba(93, 216, 209, 0.4);
  color: #5dd8d1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.privacy-contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* The label: Changed from faint grey to bright white with a glowing teal accent dot */
.privacy-contact-text h6 {
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.privacy-contact-text h6::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5dd8d1;
  box-shadow: 0 0 8px #5dd8d1;
}

.privacy-contact-text p,
.privacy-contact-text a {
  color: #e2e8f0 !important;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.privacy-contact-text a:hover {
  color: #5dd8d1 !important;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .privacy-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-contact-item:nth-child(1),
  .privacy-contact-item:nth-child(2),
  .privacy-contact-item:nth-child(3),
  .privacy-contact-item:nth-child(4) {
    grid-column: span 1;
  }
  .privacy-contact-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .privacy-contact-grid {
    grid-template-columns: 1fr;
  }
  .privacy-contact-item:nth-child(1),
  .privacy-contact-item:nth-child(2),
  .privacy-contact-item:nth-child(3),
  .privacy-contact-item:nth-child(4),
  .privacy-contact-item:nth-child(5) {
    grid-column: span 1;
  }
}

/* ---------------------------------------------------
   6. Responsive Styles (< 992px)
   --------------------------------------------------- */
@media (max-width: 991px) {
  .privacy-hero {
    padding-top: 180px;
  }

  .privacy-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .privacy-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 10px;
  }

  .privacy-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
  }

  .privacy-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 576px) {
  .privacy-hero {
    padding-top: 160px;
  }

  .privacy-title {
    font-size: 1.7rem;
  }

  .privacy-card {
    padding: 24px 18px;
  }

  .privacy-nav-list {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   7. Print Styles
   --------------------------------------------------- */
@media print {
  header, footer, .privacy-sidebar, .privacy-actions, #whatsapp-button {
    display: none !important;
  }

  .privacy-hero {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .privacy-title, .privacy-card-title, .privacy-subheading {
    color: #000000 !important;
  }

  .privacy-card {
    background: transparent !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .privacy-card-body, .privacy-list li, .privacy-feature-box p {
    color: #222222 !important;
  }
}
