/* style/privacy-policy.css */
/* 
  Global Styles & Variables for page-privacy-policy
  Color Palette: Primary #FFD700 (Gold), Secondary #1E90FF (Deep Blue)
  Body background is #f4f4f4 (light), so text should be dark.
*/
:root {
  --page-privacy-policy-primary-color: #FFD700;
  --page-privacy-policy-secondary-color: #1E90FF;
  --page-privacy-policy-text-dark: #333333;
  --page-privacy-policy-text-light: #ffffff;
  --page-privacy-policy-bg-light: #f4f4f4; /* Matches body background */
  --page-privacy-policy-border-color: #e0e0e0;
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-privacy-policy-text-dark); /* Dark text for light background */
  background-color: var(--page-privacy-policy-bg-light); /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 40px; /* Adjusted padding */
  background: linear-gradient(135deg, var(--page-privacy-policy-primary-color) 0%, var(--page-privacy-policy-secondary-color) 100%);
  color: var(--page-privacy-policy-text-light); /* Light text on dark/gradient background */
}

.page-privacy-policy__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above image if image is styled with absolute position */
}

.page-privacy-policy__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-privacy-policy-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__intro-description {
  font-size: 1.1em;
  max-width: 800px;
  margin-bottom: 30px;
  color: var(--page-privacy-policy-text-light);
}

.page-privacy-policy__hero-image {
  width: 100%;
  margin-top: 30px; /* Separates image from text above */
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--page-privacy-policy-text-light); /* White background for button */
  color: var(--page-privacy-policy-secondary-color); /* Deep blue text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-button:hover {
  background: var(--page-privacy-policy-primary-color); /* Gold background on hover */
  color: var(--page-privacy-policy-text-light); /* White text on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-privacy-policy__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--page-privacy-policy-text-light); /* White background for content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: -60px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 1;
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: var(--page-privacy-policy-secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--page-privacy-policy-primary-color);
  padding-bottom: 10px;
}

.page-privacy-policy__sub-title {
  font-size: 1.4em;
  color: var(--page-privacy-policy-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
}

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

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

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

.page-privacy-policy a {
  color: var(--page-privacy-policy-secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: var(--page-privacy-policy-primary-color);
}

/* Image Placement in Content */
.page-privacy-policy__image-right {
  float: right;
  margin-left: 25px;
  margin-bottom: 15px;
  max-width: 40%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__image-left {
  float: left;
  margin-right: 25px;
  margin-bottom: 15px;
  max-width: 40%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__image-right img,
.page-privacy-policy__image-left img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Clear floats */
.page-privacy-policy__content-area::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--page-privacy-policy-border-color);
  padding-top: 20px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--page-privacy-policy-text-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9; /* Slightly different background for open 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(--page-privacy-policy-text-light);
  border: 1px solid var(--page-privacy-policy-border-color);
  border-radius: 5px;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-privacy-policy-primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  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: var(--page-privacy-policy-secondary-color);
  transform: rotate(45deg); /* Plus sign rotates to a cross */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 2.2em;
  }
  .page-privacy-policy__intro-description {
    font-size: 1em;
  }
  .page-privacy-policy__section-title {
    font-size: 1.8em;
  }
  .page-privacy-policy__sub-title {
    font-size: 1.3em;
  }
  .page-privacy-policy__image-right,
  .page-privacy-policy__image-left {
    max-width: 45%;
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-section {
    padding: 40px 15px 30px;
  }

  .page-privacy-policy__main-title {
    font-size: 1.8em;
  }

  .page-privacy-policy__intro-description {
    font-size: 0.95em;
  }

  .page-privacy-policy__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Content Area */
  .page-privacy-policy__content-area {
    padding: 30px 15px;
    margin-top: -40px; /* Adjust overlap for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-privacy-policy__sub-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Images in content */
  .page-privacy-policy__image-right,
  .page-privacy-policy__image-left {
    float: none; /* Remove float for mobile */
    margin: 20px auto; /* Center images */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-privacy-policy__image-right img,
  .page-privacy-policy__image-left img,
  .page-privacy-policy__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px; /* Slightly smaller border-radius for mobile */
  }

  /* FAQ */
  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-privacy-policy__faq-question h3 {
    font-size: 1em;
    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;
  }
}

/* Base styles for all images to ensure minimum size and no small icons */
.page-privacy-policy img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Default to cover, can be overridden by specific contexts */
}

/* Content area images must not be smaller than 200px */
.page-privacy-policy__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}