/* style/privacy-policy.css */

/* Base Styles */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Default body background is white */
}

.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); /* Fixed header spacing */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF);
    color: #ffffff; /* White text for hero section */
}

.page-privacy-policy__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-privacy-policy__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-privacy-policy__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-width: 1000px; /* Limit hero image width */
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    object-fit: cover; /* Ensure image covers its area without distortion */
}

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

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

.page-privacy-policy__cta-button:hover {
    background: #d46f06; /* Darken #EA7C07 by 10% */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-privacy-policy__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-privacy-policy__content-area {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #333333;
}

.page-privacy-policy__section-title {
    font-size: 2em;
    color: #26A9E0; /* Primary brand color for main titles */
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    text-align: left;
}

.page-privacy-policy__sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-privacy-policy ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-privacy-policy ul li {
    margin-bottom: 10px;
}

.page-privacy-policy a {
    color: #26A9E0;
    text-decoration: none;
}

.page-privacy-policy a:hover {
    text-decoration: underline;
}

.page-privacy-policy__image-block {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover; /* Ensure image covers its area without distortion */
}

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

/* FAQ container style */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
}

/* 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 20px;
  opacity: 0;
  color: #555;
}

/* 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 !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

/* Question style */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

.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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  pointer-events: none; /* Prevent h3 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 */
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-privacy-policy__hero-title {
        font-size: 2.5em;
    }
    .page-privacy-policy__hero-description {
        font-size: 1.1em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.3em;
    }
    .page-privacy-policy__content-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-privacy-policy__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-privacy-policy__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-privacy-policy__hero-image {
        border-radius: 5px;
    }
    .page-privacy-policy__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        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 {
        padding: 40px 15px;
    }
    .page-privacy-policy__content-area {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.2em;
    }
    .page-privacy-policy p,
    .page-privacy-policy ul li {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__image-block,
    .page-privacy-policy__section,
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* FAQ Mobile */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
        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;
    }
}