/* style/privacy-policy.css */

/* General page styling */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensure consistency with body background */
}

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
    color: #ffffff; /* White text for dark gradient part */
    min-height: 400px;
}

.page-privacy-policy__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-privacy-policy__hero-content {
    text-align: center;
    padding: 20px;
}

.page-privacy-policy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Main content area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Explicitly set for content area */
    color: #333333;
}

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

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for main titles */
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

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

.page-privacy-policy__sub-section-title {
    font-size: 1.6em;
    color: #000000; /* Darker color for sub-sections */
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #26A9E0;
    padding-left: 15px;
}

.page-privacy-policy__text-block {
    margin-bottom: 40px;
}

.page-privacy-policy__text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333333;
}

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

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

.page-privacy-policy__text-block strong {
    color: #000000;
}

/* Images */
.page-privacy-policy__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Constrain max width for content images */
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Call to action buttons */
.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background: #d66b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border: none;
}

.page-privacy-policy__btn-primary:hover {
    background: #d66b00;
}

.page-privacy-policy__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Brand color */
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

.page-privacy-policy__btn-secondary:hover {
    background: #e0f2f7;
    color: #1a7fb3;
    border-color: #1a7fb3;
}

.page-privacy-policy__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f5fafd; /* Light blue background for CTA */
    border-radius: 10px;
    margin-top: 60px;
}

.page-privacy-policy__cta-section .page-privacy-policy__section-title {
    color: #26A9E0;
    margin-top: 0;
}

.page-privacy-policy__cta-section .page-privacy-policy__section-title::after {
    background-color: #26A9E0;
}

.page-privacy-policy__cta-section p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
}

/* Links within text */
.page-privacy-policy a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #1a7fb3;
    text-decoration: none;
}

/* FAQ Section Styles */
.page-privacy-policy__faq-list {
  margin-top: 50px;
  margin-bottom: 60px;
}

/* FAQ container style */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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;
  background: #f9f9f9; /* Light background for answer */
  color: #555555;
}

/* 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 to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

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

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

/* Question title style */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
}

/* Toggle icon */
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #26A9E0; /* Brand color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.8em;
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
    .page-privacy-policy__sub-section-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-privacy-policy__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__content-area {
        padding: 20px 15px;
    }

    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-section-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .page-privacy-policy__text-block {
        margin-bottom: 30px;
    }

    .page-privacy-policy__text-block ul {
        margin-left: 20px;
    }

    .page-privacy-policy__image {
        margin: 20px auto;
        border-radius: 4px;
        max-width: 100% !important; /* Enforce responsive image */
        width: 100% !important;
        height: auto !important;
    }

    /* Button specific responsive styles */
    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px; /* Add vertical spacing */
    }

    .page-privacy-policy__cta-section {
        padding: 40px 15px;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Space between stacked buttons */
    }

    .page-privacy-policy__cta-section .page-privacy-policy__cta-button:last-child {
        margin-bottom: 0;
    }

    /* Ensure containers for images and buttons are also responsive */
    .page-privacy-policy__container,
    .page-privacy-policy__text-block,
    .page-privacy-policy__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* If multiple buttons are in a flex container, ensure they wrap or stack */
    .page-privacy-policy__cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Space between stacked buttons */
    }

    .page-privacy-policy__cta-section .page-privacy-policy__section-title {
        margin-bottom: 20px;
    }
    .page-privacy-policy__cta-section p {
        margin-bottom: 25px;
    }

    /* Mobile adaptation for FAQ */
    .page-privacy-policy__faq-list {
      margin-top: 30px;
      margin-bottom: 40px;
    }
    .page-privacy-policy__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
      font-size: 15px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-privacy-policy__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .page-privacy-policy__faq-answer {
      padding: 0 15px;
    }
    
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
      padding: 15px !important;
    }
}

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