/* style/privacy-policy.css */

/* Custom properties for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --bg-color-main: #08160F; /* Main background, assuming body has this or similar dark color */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  /* Button gradient */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg-color-main); /* Assuming body has this or similar dark background */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure text in main content is readable against dark background */
.page-privacy-policy__content-section {
  padding: 60px 0;
  background-color: var(--bg-color-main);
  color: var(--text-main);
}

.page-privacy-policy__dark-bg {
  background-color: var(--deep-green); /* Example of using a darker green for some sections */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Only bottom padding for the section */
  background-color: var(--bg-color-main);
  padding-top: 10px; /* Small top padding for the first section, after body's padding-top */
}

.page-privacy-policy__hero-image-container {
  width: 100%;
  max-width: 1200px; 
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-privacy-policy__hero-content {
  max-width: 800px;
  padding: 20px;
  background: var(--card-bg); /* Use card background for content block */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-top: 0; /* No margin-top if image is above it */
}

.page-privacy-policy__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-privacy-policy__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-privacy-policy__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-privacy-policy__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
.page-privacy-policy__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-privacy-policy__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold-color);
  border-radius: 2px;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__text-block p,
.page-privacy-policy__text-block li {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

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

.page-privacy-policy__text-block ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-privacy-policy__text-block ul li {
  margin-bottom: 8px;
}

.page-privacy-policy__text-block a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-privacy-policy__text-block a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Card styles */
.page-privacy-policy__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main); /* Ensure text in card is light */
}

/* Grid Layout */
.page-privacy-policy__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-privacy-policy__grid-layout--reverse {
  grid-template-columns: 1fr 1fr; /* Reset for desktop */
}

.page-privacy-policy__grid-layout--reverse .page-privacy-policy__text-block {
  order: 2;
}

.page-privacy-policy__grid-layout--reverse .page-privacy-policy__image-wrapper {
  order: 1;
}

.page-privacy-policy__image-wrapper {
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: var(--deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-privacy-policy__faq-question:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
}

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

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

.page-privacy-policy__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-height: 0; /* For JS fallback */
  overflow: hidden; /* For JS fallback */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For JS fallback */
}

.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-answer {
  max-height: 1000px; /* Sufficiently large for content, for JS fallback */
  padding-top: 15px;
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-privacy-policy__grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-privacy-policy__grid-layout--reverse .page-privacy-policy__text-block {
    order: unset; /* Reset order for mobile */
  }
  .page-privacy-policy__grid-layout--reverse .page-privacy-policy__image-wrapper {
    order: unset; /* Reset order for mobile */
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 40px 0;
    padding-top: 10px; /* Small top padding for the first section, after body's padding-top */
  }

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

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

  .page-privacy-policy__description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-privacy-policy__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-privacy-policy__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-privacy-policy__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .page-privacy-policy__text-block p,
  .page-privacy-policy__text-block li {
    font-size: 0.95rem;
  }

  .page-privacy-policy__card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* Images responsiveness */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers holding images/content responsiveness */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__image-wrapper,
  .page-privacy-policy__hero-section,
  .page-privacy-policy__hero-content,
  .page-privacy-policy__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific adjustment for hero content padding, if needed, but hero-section padding covers it */
  .page-privacy-policy__hero-content {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  /* Video responsiveness (if any, though not explicitly in current HTML) */
  .page-privacy-policy video,
  .page-privacy-policy__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-privacy-policy__video-section,
  .page-privacy-policy__video-container,
  .page-privacy-policy__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-privacy-policy__video-section {
    padding-top: 10px !important; /* Small top padding, body has --header-offset */
  }
}

/* Ensure no CSS filter on images */
.page-privacy-policy img {
  filter: none !important;
}

/* Contrast fix if needed, though designed for dark bg */
.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;
}