/* style/privacy-policy.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1E90FF;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-bg-light-mode: #ffffff;
  --border-color: #e0e0e0;
  --hover-bg-color: #f5f5f5;
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Body background is dark #0a0a0a */
  background-color: transparent; /* inherited from body */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  max-width: 100%;
  overflow-x: hidden;
}

.page-privacy-policy__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0a0a 100%);
  color: var(--text-color-dark-bg);
  padding-top: 40px; /* Adjusted as main already has padding-top */
}

.page-privacy-policy__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-privacy-policy__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color); /* Use primary color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0d0d0d; /* Slightly lighter dark background for content area */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-privacy-policy__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

.page-privacy-policy__subsection {
  margin-bottom: 30px;
  background: var(--card-bg-dark-mode);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__subsection-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__list-item {
  margin-bottom: 8px;
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.page-privacy-policy__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Darker background for FAQ section */
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for question */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

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

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker background for answer */
  color: var(--text-color-dark-bg);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* General Image Styling for content area */
.page-privacy-policy__content-area img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.8em;
  }
  .page-privacy-policy__section-title {
    font-size: 2em;
  }
  .page-privacy-policy__subsection-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 15px;
    line-height: 1.5;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  .page-privacy-policy__hero-section {
    padding: 30px 15px;
    padding-top: 20px; /* Adjusted as main already has padding-top */
  }

  .page-privacy-policy__hero-container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-privacy-policy__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__content-area {
    padding: 30px 15px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__subsection {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__subsection-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-privacy-policy__list {
    margin-left: 15px;
  }

  .page-privacy-policy__content-area img, 
  .page-privacy-policy__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  /* FAQ Mobile */
  .page-privacy-policy__faq-section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__faq-item {
    margin-bottom: 10px;
  }

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