/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5; /* Default light background for the page content */
}

/* Ensure the main content area has appropriate padding for desktop */
.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* HERO Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: #B71C1C; /* Background color from custom palette */
  color: #FFF5E1; /* Text color for dark background */
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: 600px; /* Fixed height for hero image on desktop */
  object-fit: cover;
  display: block;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to move content slightly up over the image */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-privacy-policy__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Content Section */
.page-privacy-policy__content-section {
  background-color: #ffffff; /* Explicitly white background for content area */
  color: #333333; /* Dark text for white background */
  padding: 40px 0;
}

.page-privacy-policy__section-title {
  font-size: 2.2rem;
  color: #C91F17; /* Main brand color for titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-privacy-policy__sub-title {
  font-size: 1.8rem;
  color: #E53935; /* Auxiliary brand color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-privacy-policy__list li {
  margin-bottom: 8px;
}

.page-privacy-policy__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__contact-link {
  color: #C91F17;
  text-decoration: underline;
}

.page-privacy-policy__contact-link:hover {
  color: #E53935;
}

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

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}

.page-privacy-policy__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive Styles */

/* For screens smaller than 1024px (tablet) */
@media (max-width: 1024px) {
  .page-privacy-policy__hero-image img {
    height: 500px;
  }

  .page-privacy-policy__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 2.5rem;
  }

  .page-privacy-policy__description {
    font-size: 1.1rem;
  }

  .page-privacy-policy__section-title {
    font-size: 2rem;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.6rem;
  }
}

/* For screens smaller than 849px (specific for hero image object-fit) */
@media (max-width: 849px) {
  .page-privacy-policy__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible without cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    height: auto !important; /* Allow height to adjust based on content */
  }
}

/* For screens smaller than 768px (mobile) */
@media (max-width: 768px) {
  .page-privacy-policy__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-privacy-policy__hero-section {
    padding-top: 10px; /* Small top padding for mobile, body handles header offset */
  }

  .page-privacy-policy__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-privacy-policy__hero-content {
    margin-top: 0; /* No overlap on mobile */
    padding: 25px 15px;
    border-radius: 0;
    box-shadow: none;
    background: #B71C1C; /* Solid background on mobile for content */
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for smaller screens */
    margin-bottom: 15px;
  }

  .page-privacy-policy__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-privacy-policy__btn-primary {
    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;
  }

  /* Content Section */
  .page-privacy-policy__content-section {
    padding: 30px 0;
  }

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

  .page-privacy-policy__sub-title {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__text-block p {
    font-size: 15px;
  }

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

  .page-privacy-policy__list li {
    font-size: 15px;
  }

  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  /* FAQ Section */
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    padding: 15px;
    font-size: 15px;
    flex-wrap: wrap;
  }

  .page-privacy-policy__faq-qtext {
    width: calc(100% - 40px); /* Adjust width to make space for toggle */
  }

  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 15px 15px;
  }
}