/* style/privacy-policy.css */

/* Base Styles */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default white body background */
    background-color: #f9f9f9; /* Light background for content sections */
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Apply header offset to the main content container */
    padding-top: var(--header-offset, 120px); 
}

/* 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;
    background: linear-gradient(135deg, #017439, #009944); /* Green gradient */
    color: #ffffff;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-privacy-policy__main-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-privacy-policy__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General Section Styles */
.page-privacy-policy__section {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__section-title {
    font-size: 28px;
    color: #017439; /* Primary color for titles */
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    font-weight: bold;
}

.page-privacy-policy__subsection-title {
    font-size: 22px;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 0;
}

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.7;
}

.page-privacy-policy__list-item strong {
    color: #017439;
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Call to Action Section */
.page-privacy-policy__cta-section {
    text-align: center;
    background-color: #017439; /* Primary color for CTA background */
    color: #ffffff;
    padding: 50px 20px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__cta-section .page-privacy-policy__section-title {
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.page-privacy-policy__cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__faq-list {
    margin-top: 30px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0; /* Added for better visual separation */
}

/* FAQ default state - answer hidden */
.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px dashed #e0e0e0; /* Visual separator */
}

/* Question style */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 5px; /* Only top corners if no border on item */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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