/* style/privacy-policy.css */

/* Base styles for the privacy policy page content */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Container for main content to center and limit width */
.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared has body padding-top, so hero should be 0 */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
  background: #0d0d0d; /* Dark background for hero section */
}

.page-privacy-policy__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 400px; /* Fixed height for hero image */
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
  filter: brightness(0.7); /* Slightly dim the image to make it less distracting */
}

/* Content Section */
.page-privacy-policy__content-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Dark background for content section */
}

.page-privacy-policy__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

/* Headings */
.page-privacy-policy__heading-1 {
  font-size: 36px;
  color: #ffc107; /* Auxiliary color for main title */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-privacy-policy__heading-2 {
  font-size: 28px;
  color: #007bff; /* Primary color for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 123, 255, 0.3); /* Subtle underline */
  padding-bottom: 10px;
}

.page-privacy-policy__heading-3 {
  font-size: 22px;
  color: #ffc107;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Paragraphs and Lists */
.page-privacy-policy__intro-paragraph {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-privacy-policy__paragraph {
  margin-bottom: 20px;
  color: #e0e0e0;
}

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

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-privacy-policy__list-item strong {
  color: #ffffff;
}

/* Images within content */
.page-privacy-policy__image-full {
  width: 100%;
  height: auto;
  min-height: 250px; /* Ensure minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-privacy-policy__image-content {
  width: 80%;
  height: auto;
  min-height: 250px; /* Ensure minimum size */
  object-fit: cover;
  border-radius: 8px;
  margin: 30px auto; /* Center content images */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Links */
.page-privacy-policy__link {
  color: #007bff; /* Primary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
  color: #ffc107; /* Auxiliary color on hover */
}

/* Back to Home Button */
.page-privacy-policy__back-to-home-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-privacy-policy__back-to-home-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #007bff;
}

.page-privacy-policy__back-to-home-button:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  transform: translateY(-3px);
  color: #333333; /* Dark text on light background */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for FAQ */
}

.page-privacy-policy__faq-list {
  margin-top: 30px;
}

/* FAQ item styles */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ item */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #007bff; /* Primary color for question background */
  border: 1px solid rgba(0, 123, 255, 0.5);
  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: #0069d9; /* Slightly darker primary color on hover */
  border-color: #0056b3;
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-privacy-policy__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107; /* Auxiliary color for toggle icon */
  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-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #ffffff; /* White color when active */
  transform: rotate(180deg); /* Rotate for minus sign */
}

.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-color: #1a1a1a; /* Dark background for answer */
  color: #e0e0e0; /* Light text for answer */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(0, 123, 255, 0.5);
  border-top: none;
}

.page-privacy-policy__faq-answer p {
  margin: 0;
  padding: 0;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__heading-1 {
    font-size: 32px;
  }
  .page-privacy-policy__heading-2 {
    font-size: 26px;
  }
  .page-privacy-policy__intro-paragraph {
    font-size: 17px;
  }
  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 15px;
  }
  .page-privacy-policy__image-content {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-privacy-policy__container {
    padding: 0 15px;
  }
  .page-privacy-policy__hero-container {
    height: 250px;
  }
  .page-privacy-policy__content-section,
  .page-privacy-policy__faq-section {
    padding: 40px 0;
  }
  .page-privacy-policy__heading-1 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-privacy-policy__heading-2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-privacy-policy__heading-3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-privacy-policy__intro-paragraph {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 14px;
  }
  .page-privacy-policy__list {
    padding-left: 20px;
  }
  .page-privacy-policy__image-full,
  .page-privacy-policy__image-content {
    width: 100%;
    min-height: 200px; /* Ensure minimum size */
    margin: 20px 0;
  }

  /* Buttons responsive */
  .page-privacy-policy__back-to-home-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ responsive */
  .page-privacy-policy__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-privacy-policy__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    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;
  }

  /* General image responsive fix for content area */
  .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;
  }
}