/* 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: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

/* Ensure content containers adapt to mobile */
.page-privacy-policy__section,
.page-privacy-policy__content-area,
.page-privacy-policy__faq-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  display: flex;
  flex-direction: column; /* Stacks image then content */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #f5f5f5; /* Light background for hero */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-privacy-policy__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content takes full width up to max-width */
  text-align: center;
  color: #333333;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__lead-paragraph {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* Section Titles */
.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0; /* Brand color for main section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: #000000; /* Darker color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Paragraphs and Lists */
.page-privacy-policy p {
  margin-bottom: 15px;
  color: #333333;
}

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

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

/* Images within content */
.page-privacy-policy__image-block {
  text-align: center;
  margin: 30px 0;
}

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

/* Call to Action Buttons */
.page-privacy-policy__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-privacy-policy__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #1a8cc7; /* Slightly darker on hover */
  border-color: #1a8cc7;
}

.page-privacy-policy__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand primary color for text */
  border: 2px solid #26A9E0;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: #e0f2f7; /* Light background on hover */
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-privacy-policy__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #000000;
  user-select: none;
}

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

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
}

.page-privacy-policy__faq-answer {
  padding: 0 20px 15px 20px;
  color: #555555;
  font-size: 0.95em;
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0; /* Remove bottom margin for paragraphs inside FAQ answer */
}

/* Contact List */
.page-privacy-policy__contact-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  color: #333333;
}

.page-privacy-policy__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-privacy-policy__contact-list strong {
  color: #000000;
}

.page-privacy-policy__contact-list a {
  color: #26A9E0; /* Brand color for contact links */
  text-decoration: none;
}

.page-privacy-policy__contact-list a:hover {
  text-decoration: underline;
}

/* General Link Styling */
.page-privacy-policy a {
  color: #26A9E0; /* Brand color for general links */
  text-decoration: none;
}

.page-privacy-policy a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-privacy-policy__hero-content {
    padding: 0 15px;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for smaller screens */
  }

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

  .page-privacy-policy__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-privacy-policy__sub-title {
    font-size: clamp(1.2em, 6vw, 1.5em);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-list {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-privacy-policy__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__faq-item summary {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  .page-privacy-policy__faq-answer {
    padding: 0 15px 12px 15px;
    font-size: 0.9em;
  }

  .page-privacy-policy__contact-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Safeguards */
/* Assuming body background is light (from shared.css), content text is dark */
.page-privacy-policy {
  color: #333333; /* Dark text on light background */
}

/* Specific elements that might have brand color backgrounds */
.page-privacy-policy__dark-section {
  background-color: #26A9E0;
  color: #ffffff; /* White text on brand blue background */
}

.page-privacy-policy__btn-primary {
  background-color: #26A9E0;
  color: #ffffff; /* White text on brand blue button */
}

.page-privacy-policy__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand blue text on white button */
}

.page-privacy-policy__faq-toggle {
  color: #26A9E0; /* Brand blue for toggle icon */
}

.page-privacy-policy a {
  color: #26A9E0; /* Brand blue for general links */
}

/* Login button color */
.page-privacy-policy__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}
.page-privacy-policy__btn-login:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}