/* style/privacy-policy.css */

:root {
  --k9cc-green-main: #11A84E;
  --k9cc-green-secondary: #22C768;
  --k9cc-bg-dark: #08160F;
  --k9cc-card-bg: #11271B;
  --k9cc-text-main: #F2FFF6;
  --k9cc-text-secondary: #A7D9B8;
  --k9cc-border: #2E7A4E;
  --k9cc-glow: #57E38D;
  --k9cc-gold: #F2C14E;
  --k9cc-divider: #1E3A2A;
  --k9cc-deep-green: #0A4B2C;
  --k9cc-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--k9cc-text-main); /* Default text color for dark body background */
  background-color: var(--k9cc-bg-dark); /* Assuming body background is dark */
}

.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding for first section */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background: var(--k9cc-bg-dark);
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-privacy-policy__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative; /* Ensure content is above the image if needed, but not overlaying */
  z-index: 2;
}

.page-privacy-policy__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Use clamp for H1 */
  font-weight: bold;
  color: var(--k9cc-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: 1.1rem;
  color: var(--k9cc-text-secondary);
  margin-bottom: 30px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background: var(--k9cc-button-gradient);
  color: var(--k9cc-text-main);
  border: none;
}

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

.page-privacy-policy__btn-secondary {
  background: transparent;
  color: var(--k9cc-green-secondary);
  border: 2px solid var(--k9cc-green-secondary);
}

.page-privacy-policy__btn-secondary:hover {
  background: var(--k9cc-green-secondary);
  color: var(--k9cc-bg-dark);
  transform: translateY(-2px);
}

.page-privacy-policy__section {
  padding: 60px 0;
}

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

.page-privacy-policy__section-title {
  font-size: 2.2rem;
  color: var(--k9cc-green-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-privacy-policy__sub-title {
  font-size: 1.6rem;
  color: var(--k9cc-green-secondary);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-privacy-policy__text-block {
  font-size: 1rem;
  color: var(--k9cc-text-secondary);
  margin-bottom: 20px;
}

.page-privacy-policy__bullet-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--k9cc-text-secondary);
}

.page-privacy-policy__bullet-list li {
  margin-bottom: 10px;
}

.page-privacy-policy__bullet-list strong {
  color: var(--k9cc-text-main);
}

.page-privacy-policy__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-privacy-policy__card {
  background-color: var(--k9cc-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--k9cc-text-secondary);
  border: 1px solid var(--k9cc-border);
}

.page-privacy-policy__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-privacy-policy__card-title {
  font-size: 1.4rem;
  color: var(--k9cc-green-main);
  margin-bottom: 15px;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--k9cc-text-secondary);
}

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

.page-privacy-policy__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__dark-bg {
  background-color: var(--k9cc-bg-dark);
  color: var(--k9cc-text-main);
}

.page-privacy-policy__dark-bg .page-privacy-policy__text-block,
.page-privacy-policy__dark-bg .page-privacy-policy__bullet-list li,
.page-privacy-policy__dark-bg .page-privacy-policy__list li {
  color: var(--k9cc-text-secondary);
}

.page-privacy-policy__dark-bg .page-privacy-policy__section-title {
  color: var(--k9cc-glow);
}

.page-privacy-policy__faq-section {
  background-color: var(--k9cc-card-bg);
  padding: 60px 0;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
  color: var(--k9cc-green-main);
}

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

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

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--k9cc-text-main);
  font-size: 1.1rem;
  position: relative;
  list-style: none; /* For details/summary */
}

.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-privacy-policy__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ensure click on summary toggles details, not just text */
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  pointer-events: none; /* Ensure click on summary toggles details, not just toggle */
}

.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(--k9cc-text-secondary);
}

.page-privacy-policy__faq-answer p {
  margin-bottom: 0;
}

/* Links */
.page-privacy-policy a {
  color: var(--k9cc-green-secondary);
  text-decoration: underline;
}

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

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

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

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

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

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

  .page-privacy-policy__section {
    padding: 40px 0;
  }

  .page-privacy-policy__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.4rem;
  }

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

  .page-privacy-policy__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-privacy-policy__card {
    padding: 20px;
    border-radius: 10px;
  }

  .page-privacy-policy__card-image {
    height: 200px; /* Adjust height for mobile */
  }

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

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

  /* Image responsive rules for content area */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images also adapt */
  .page-privacy-policy__card,
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__content-grid,
  .page-privacy-policy__content-image,
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Specific padding for sections if needed to prevent overflow */
  .page-privacy-policy__intro-section,
  .page-privacy-policy__data-collection-section,
  .page-privacy-policy__data-usage-section,
  .page-privacy-policy__data-sharing-section,
  .page-privacy-policy__data-security-section,
  .page-privacy-policy__user-rights-section,
  .page-privacy-policy__cookies-section,
  .page-privacy-policy__third-party-section,
  .page-privacy-policy__children-privacy-section,
  .page-privacy-policy__changes-section,
  .page-privacy-policy__contact-section,
  .page-privacy-policy__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}