/* style/privacy-policy.css */

/* --- Base Styles --- */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure some space at the bottom */
}

/* Fixed header spacing - body already handles padding-top from shared.css */
/* First section should have minimal top padding */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #F5F7FA; /* Match body background or be distinct */
  box-sizing: border-box;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain max width for desktop */
  margin-bottom: 30px; /* Space between image and content */
  box-sizing: border-box;
}

.page-privacy-policy__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  filter: none !important; /* Ensure no filter */
}

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

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* H1 font size with clamp */
  color: #E53935; /* Main color for emphasis */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on mobile */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container */
  text-align: center;
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #E53935; /* Main color */
  border: 2px solid #E53935;
}

.page-privacy-policy__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #F5F7FA; /* Background */
}

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

.page-privacy-policy__intro-paragraph {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #333333;
  text-align: justify;
}

.page-privacy-policy__brand-highlight {
  color: #E53935; /* Main color */
  font-weight: bold;
}

/* Collapsible sections (details/summary) */
.page-privacy-policy__section-details {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* For smooth transition on open/close */
}

.page-privacy-policy__section-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #F8F8F8; /* Slightly different background for summary */
  color: #333333;
  font-weight: bold;
  font-size: 1.2em;
  user-select: none;
  list-style: none; /* Remove default marker */
}

.page-privacy-policy__section-summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-privacy-policy__section-title {
  margin: 0;
  color: #E53935; /* Main color */
  font-size: 1em; /* Adjust H2 size within summary */
  flex-grow: 1;
  text-align: left;
}

.page-privacy-policy__section-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
  transition: transform 0.3s ease;
}

.page-privacy-policy__section-details[open] .page-privacy-policy__section-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-privacy-policy__section-content {
  padding: 20px 25px;
  color: #333333;
  font-size: 1em;
  border-top: 1px solid #E0E0E0; /* Border */
}

.page-privacy-policy__section-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-privacy-policy__section-content ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

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

.page-privacy-policy__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  filter: none !important; /* Ensure no filter */
}

.page-privacy-policy__link {
  color: #E53935; /* Main color */
  text-decoration: underline;
  font-weight: bold;
}

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

.page-privacy-policy__bottom-cta {
  text-align: center;
  margin-top: 60px;
  padding: 30px 20px;
  background-color: #ffffff; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-privacy-policy__bottom-cta p {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 25px;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-privacy-policy__description {
    font-size: 1em;
  }

  .page-privacy-policy__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-privacy-policy__content-area,
  .page-privacy-policy__bottom-cta {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__section-summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-privacy-policy__section-content {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos must be 100% width on mobile */
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__container,
  .page-privacy-policy__section-details,
  .page-privacy-policy__bottom-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}

/* Contrast fixes if needed (as per instructions) */
.page-privacy-policy__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-privacy-policy__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}