/* style/privacy-policy.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --card-background: #1a1a1a; /* Adjusted for dark body background */
  --border-color: #333333;
  --highlight-color: #E3B505;
}

.page-privacy-policy {
  color: var(--text-color-dark-bg); /* Default text color for dark body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--background-dark);
  /* Fixed navigation bar spacing for desktop */
  padding-top: 120px; /* Adjusted to prevent content overlap */
}

@media (max-width: 768px) {
  .page-privacy-policy {
    /* Fixed navigation bar spacing for mobile */
    padding-top: 100px !important; /* Adjusted for mobile navigation */
  }
}

/* HERO Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #1A3A7A);
  color: var(--text-color-dark-bg);
  padding-top: 180px; /* Desktop: Adjust based on actual fixed header height */
}

.page-privacy-policy__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 600px; /* Limit image width for better composition */
}

.page-privacy-policy__hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-privacy-policy__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button:hover {
  background: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-privacy-policy__content-section {
  padding: 60px 20px;
  background-color: var(--card-background); /* Darker background for content sections */
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
  border-bottom: 2px solid rgba(227, 181, 5, 0.3);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--text-color-dark-bg);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-privacy-policy__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-privacy-policy__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-privacy-policy__list-item {
  font-size: 1.05em;
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-privacy-policy__list-item strong {
  color: var(--secondary-color);
}

.page-privacy-policy__link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-privacy-policy__image-wrapper {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Limit content image width */
}

.page-privacy-policy__content-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure images are responsive */
  display: block;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 30px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-background);
  border: 1px solid var(--border-color);
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #e0e0e0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color); /* Brand color for question background */
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-question:hover {
  background: #1A3A7A; /* Slightly lighter primary color on hover */
  border-color: #1A3A7A;
}

.page-privacy-policy__faq-question:active {
  background: #0A2463;
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-title {
    font-size: 2.8em;
  }
  .page-privacy-policy__hero-description {
    font-size: 1.1em;
  }
  .page-privacy-policy__section-title {
    font-size: 2em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.4em;
  }
  .page-privacy-policy__paragraph, .page-privacy-policy__list-item {
    font-size: 1em;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on actual fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-privacy-policy__hero-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__hero-description {
    font-size: 1em;
  }
  .page-privacy-policy__hero-img {
    border-radius: 4px;
  }
  .page-privacy-policy__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }

  .page-privacy-policy__content-section {
    padding: 30px 15px;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-privacy-policy__paragraph, .page-privacy-policy__list-item {
    font-size: 0.95em;
  }
  .page-privacy-policy__list {
    margin-left: 20px;
  }
  .page-privacy-policy__image-wrapper {
    margin: 20px auto;
  }
  .page-privacy-policy__content-img {
    border-radius: 4px;
  }

  /* FAQ Mobile Styles */
  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-privacy-policy__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }
  
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers are responsive */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Contrast Fixes */
.page-privacy-policy__dark-bg {
  color: var(--text-color-dark-bg); /* Deep blue background, white text */
  background: var(--primary-color);
}

.page-privacy-policy__light-bg {
  color: var(--text-color-dark-bg); /* Dark card background, white text */
  background: var(--card-background);
}

/* Ensure all text elements have sufficient contrast */
.page-privacy-policy h1, .page-privacy-policy h2, .page-privacy-policy h3, .page-privacy-policy p, .page-privacy-policy li {
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__section-title, .page-privacy-policy__sub-title {
  color: var(--secondary-color);
}

.page-privacy-policy__cta-button {
  color: var(--primary-color); /* Gold button, dark blue text */
}

.page-privacy-policy__faq-question {
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-question h3 {
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-toggle {
  color: var(--secondary-color);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #FFD700;
}