/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark background */
    background-color: var(--primary-color, #0A192F); /* Ensures consistency with shared primary color */
}

/* Fixed Header Spacing */
.page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for content sections */
.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: #0A192F; /* Primary color as dark background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-privacy-policy__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Secondary color for emphasis */
    line-height: 1.2;
}

.page-privacy-policy__intro-text {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFD700; /* Secondary color for primary CTA */
    color: #0A192F; /* Dark text for light button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__cta-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Secondary color for text */
    border: 2px solid #FFD700;
    box-shadow: none;
}

.page-privacy-policy__cta-button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Light background on hover */
    color: #FFD700;
    transform: translateY(-2px);
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for main content */
    color: #333333; /* Dark text for light background */
}

.page-privacy-policy__section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #0A192F; /* Dark primary color for titles on light background */
    text-align: center;
}

.page-privacy-policy__section-title--light {
    color: #FFD700; /* Light secondary color for titles on dark background */
}

.page-privacy-policy__sub-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #0A192F; /* Dark primary color for sub-titles on light background */
}

.page-privacy-policy__paragraph {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

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

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

.page-privacy-policy__list-item strong {
    color: #0A192F; /* Dark primary color for strong text */
}

.page-privacy-policy__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-privacy-policy__contact-item a {
    color: #007bff; /* Standard link color */
    text-decoration: underline;
}

.page-privacy-policy__contact-item a:hover {
    color: #0056b3;
}

.page-privacy-policy__effective-date {
    font-style: italic;
    text-align: right;
    margin-top: 40px;
    font-weight: bold;
    color: #555555;
}

/* Image styles */
.page-privacy-policy__image-wrapper {
    margin: 30px auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* No filter properties to change image color */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: #0A192F; /* Dark primary color background */
    color: #ffffff; /* Light text for dark background */
}

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

/* FAQ container styles */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius for modern look */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 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; /* Adjust padding for consistency */
  opacity: 0;
  background-color: #f9f9f9; /* Light background for answer */
  color: #333333; /* Dark text for answer */
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.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; /* Adjust padding for consistency */
  opacity: 1;
  border-radius: 0 0 8px 8px; /* Match item border-radius */
}

/* Question styles */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a2c42; /* Slightly lighter dark background for question */
  border: 1px solid #0A192F;
  border-radius: 8px; /* Match item border-radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Light text */
}

.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: #2a3d54; /* Darker hover effect */
  border-color: #FFD700; /* Secondary color border on hover */
}

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

/* Question title styles */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: #ffffff; /* Light text */
}

/* Toggle icon */
.page-privacy-policy__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Secondary color for icon */
  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: 32px; /* Larger hit area */
  height: 32px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #FFD700; /* Maintain secondary color */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 36px;
    }
    .page-privacy-policy__intro-text {
        font-size: 17px;
    }
    .page-privacy-policy__section-title {
        font-size: 28px;
    }
    .page-privacy-policy__sub-title {
        font-size: 22px;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item,
    .page-privacy-policy__contact-item {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Spacing - ensure this overrides desktop if needed */
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-privacy-policy__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-privacy-policy__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-privacy-policy__cta-button {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }
    .page-privacy-policy__content-section,
    .page-privacy-policy__faq-section {
        padding: 40px 0;
    }
    .page-privacy-policy__section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .page-privacy-policy__sub-title {
        font-size: 20px;
        margin-top: 30px;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item,
    .page-privacy-policy__contact-item {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Mobile image adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: 0;
        margin-right: 0;
    }
    /* FAQ mobile adaptation */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        border-radius: 6px;
    }
    .page-privacy-policy__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 15px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
        border-radius: 0 0 6px 6px;
    }
    .page-privacy-policy__faq-item {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: 24px;
    }
    .page-privacy-policy__intro-text {
        font-size: 15px;
    }
    .page-privacy-policy__cta-button {
        font-size: 15px;
        padding: 10px 15px;
    }
    .page-privacy-policy__section-title {
        font-size: 22px;
    }
    .page-privacy-policy__sub-title {
        font-size: 18px;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item,
    .page-privacy-policy__contact-item {
        font-size: 14px;
    }
    .page-privacy-policy__faq-question h3 {
        font-size: 15px;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}