/* style/privacy-policy.css */

/* Custom Colors from provided palette */
:root {
  --page-privacy-policy-primary: #11A84E;
  --page-privacy-policy-secondary: #22C768;
  --page-privacy-policy-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-privacy-policy-bg-card: #11271B;
  --page-privacy-policy-bg-main: #08160F; /* Body background */
  --page-privacy-policy-text-main: #F2FFF6;
  --page-privacy-policy-text-secondary: #A7D9B8;
  --page-privacy-policy-border: #2E7A4E;
  --page-privacy-policy-glow: #57E38D;
  --page-privacy-policy-gold: #F2C14E;
  --page-privacy-policy-divider: #1E3A2A;
  --page-privacy-policy-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-privacy-policy {
  color: var(--page-privacy-policy-text-main); /* Light text for dark background */
  background-color: var(--page-privacy-policy-bg-main); /* Explicitly set to match body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Page sections */
.page-privacy-policy__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-privacy-policy-divider);
}

.page-privacy-policy__section:last-of-type {
  border-bottom: none;
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Prevent image overflow */
}

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

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-privacy-policy__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-privacy-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  color: var(--page-privacy-policy-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-privacy-policy__hero-description {
  font-size: 1.1em;
  color: var(--page-privacy-policy-text-secondary);
  margin-bottom: 30px;
}

/* Section Titles */
.page-privacy-policy__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--page-privacy-policy-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: var(--page-privacy-policy-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Text Blocks */
.page-privacy-policy__text-block {
  font-size: 1em;
  color: var(--page-privacy-policy-text-main);
  margin-bottom: 15px;
}

.page-privacy-policy__text-block--light {
  color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__text-link {
  color: var(--page-privacy-policy-secondary);
  text-decoration: underline;
}

.page-privacy-policy__text-link:hover {
  color: var(--page-privacy-policy-glow);
}

.page-privacy-policy__text-highlight {
  color: var(--page-privacy-policy-gold);
  font-weight: bold;
}

/* Lists */
.page-privacy-policy__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-privacy-policy__list li {
  color: var(--page-privacy-policy-text-main);
  margin-bottom: 10px;
}

.page-privacy-policy__list--light li {
  color: var(--page-privacy-policy-text-main);
}

/* Image and Content Blocks (for sections with image next to text/list) */
.page-privacy-policy__image-content-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 30px;
}

.page-privacy-policy__image-content-block--reversed {
  flex-direction: row-reverse;
}

.page-privacy-policy__content-image {
  flex: 0 0 40%; /* Fixed width for image */
  max-width: 40%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-privacy-policy__image-content-block .page-privacy-policy__list,
.page-privacy-policy__image-content-block .page-privacy-policy__text-block {
  flex: 1;
}

/* Dark Sections */
.page-privacy-policy__dark-section {
  background-color: var(--page-privacy-policy-deep-green); /* Darker background for contrast */
}

/* Buttons */
.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--page-privacy-policy-button-gradient);
  color: #ffffff; /* White text on green gradient */
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-privacy-policy__faq-item {
  background-color: var(--page-privacy-policy-bg-card); /* Card background for FAQ items */
  border: 1px solid var(--page-privacy-policy-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--page-privacy-policy-bg-card);
  color: var(--page-privacy-policy-text-main);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-privacy-policy__faq-item summary:hover {
  background-color: var(--page-privacy-policy-deep-green);
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-privacy-policy-secondary);
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  content: "−"; /* Changed by JS */
}

.page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: var(--page-privacy-policy-text-secondary);
  line-height: 1.7;
}

/* Contact Section */
.page-privacy-policy__contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-privacy-policy__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--page-privacy-policy-text-main);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-privacy-policy__image-content-block {
    flex-direction: column;
    align-items: center;
  }

  .page-privacy-policy__image-content-block--reversed {
    flex-direction: column; /* Still column for reversed */
  }

  .page-privacy-policy__content-image {
    max-width: 80%; /* Adjust for smaller screens */
    flex: none;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__section {
    padding: 40px 0;
  }

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

  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* More aggressive clamp for mobile H1 */
  }

  .page-privacy-policy__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-privacy-policy__hero-description,
  .page-privacy-policy__text-block,
  .page-privacy-policy__list li,
  .page-privacy-policy__contact-list li,
  .page-privacy-policy__faq-item summary,
  .page-privacy-policy__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__container,
  .page-privacy-policy__image-content-block,
  .page-privacy-policy__faq-item,
  .page-privacy-policy__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons on mobile */
  .page-privacy-policy__btn-primary {
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-privacy-policy__content-image {
    max-width: 100%; /* Ensure content images are full width on mobile */
    flex: none;
  }

  /* Small top padding for sections on mobile, body handles header offset */
  .page-privacy-policy__hero-section {
    padding-top: 10px !important;
  }
  .page-privacy-policy__section {
    padding-left: 15px;
    padding-right: 15px;
  }
}