/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    background-color: #1a1a1a; /* Inherited from body, but explicitly set for clarity */
    color: #ffffff; /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden; /* Ensure no image overflow */
}

.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-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Enhance visual depth */
}

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-privacy-policy__main-title {
    font-size: 3em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

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

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary gold color */
    color: #000000; /* Black text for contrast */
    text-decoration: none;
    border-radius: 50px; /* Rounded button */
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-privacy-policy__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #2a2a2a; /* Slightly lighter dark background for content sections */
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #FFD700; /* Gold for section titles */
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
}

.page-privacy-policy__sub-title {
    font-size: 1.6em;
    color: #f0f0f0;
    margin-top: 35px;
    margin-bottom: 15px;
    border-left: 4px solid #FFD700;
    padding-left: 15px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.page-privacy-policy strong {
    color: #FFD700;
}

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

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.page-privacy-policy a {
    color: #FFD700; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #e6c200; /* Slightly darker gold on hover */
    text-decoration: underline;
}

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

/* FAQ Section Styles */
.page-privacy-policy__faq-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px 20px;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #333333; /* Darker background for FAQ items */
}

/* 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;
  color: #e0e0e0;
}

/* 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 for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #444444; /* Slightly lighter dark for expanded answer background */
  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: #333333;
  border: 1px solid #4a4a4a;
  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: #444444;
  border-color: #5a5a5a;
}

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

/* 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;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #FFD700; /* Gold for FAQ questions */
}

/* Toggle icon */
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  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: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.5em;
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top for hero */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__hero-container {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-privacy-policy__hero-image {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    .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;
        margin-left: auto;
        margin-right: auto;
        display: block; /* Ensure button takes full width if needed */
    }

    .page-privacy-policy__content-area {
        padding: 25px 15px;
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-privacy-policy__list {
        padding-left: 15px;
    }

    .page-privacy-policy__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    /* FAQ Mobile Adaptations */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
        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 all images and containers are responsive and do not overflow */
.page-privacy-policy img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-privacy-policy__section,
.page-privacy-policy__card,
.page-privacy-policy__container,
.page-privacy-policy__hero-section,
.page-privacy-policy__content-area,
.page-privacy-policy__faq-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 768px) {
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container,
    .page-privacy-policy__hero-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;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .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-left: 15px;
        padding-right: 15px;
    }
}