/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

/* 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, #1A2B4C, #FFD700); /* Brand colors for hero background */
    color: #ffffff; /* White text for dark background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-privacy-policy__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

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

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Auxiliary color for CTA button */
    color: #1A2B4C; /* Dark text for gold background */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    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(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff; /* White background for content */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__container {
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.page-privacy-policy__container:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.page-privacy-policy__section-title {
    font-size: 2em;
    color: #1A2B4C; /* Primary color for section titles */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFD700; /* Auxiliary color as accent */
}

.page-privacy-policy__section-title--white {
    color: #ffffff; /* White text for dark background */
    border-bottom-color: #ffffff;
}

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

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

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

.page-privacy-policy ul li {
    margin-bottom: 8px;
    color: #333333;
}

.page-privacy-policy__brand-name {
    font-weight: bold;
    color: #1A2B4C;
}

.page-privacy-policy__last-updated {
    font-style: italic;
    color: #666666;
    text-align: right;
    margin-top: 30px;
}

.page-privacy-policy a {
    color: #1A2B4C; /* Primary color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #FFD700; /* Auxiliary color on hover */
}

/* Image styles */
.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
    object-fit: cover;
}

/* Dark Background section for FAQ */
.page-privacy-policy__dark-bg {
    background-color: #1A2B4C; /* Primary color for dark section background */
    color: #ffffff; /* White text for dark background */
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.page-privacy-policy__dark-bg p,
.page-privacy-policy__dark-bg li {
    color: #f0f0f0;
}

/* FAQ Styles */
.page-privacy-policy__faq-list {
    margin-top: 30px;
}

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff; /* White background for individual FAQ items */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    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;
    color: #1A2B4C; /* Primary color for FAQ question text */
}

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

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

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

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Auxiliary color 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 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: #1A2B4C; /* Primary color when active */
    transform: rotate(45deg); /* Example rotation for '+' to 'x' */
}

.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: #333333; /* Dark text for FAQ answer */
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* IMPORTANT: Ensures content fully expands */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9; /* Light background for answer */
    border-radius: 0 0 5px 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-privacy-policy__hero-title {
        font-size: 2em;
    }

    .page-privacy-policy__hero-description {
        font-size: 1em;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-privacy-policy__content-area {
        padding: 15px;
        margin: 20px auto;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
    }

    .page-privacy-policy__container {
        padding: 10px;
    }

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

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

    /* Images */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
        border-radius: 4px;
    }
    
    .page-privacy-policy__hero-image img {
        border-radius: 4px;
    }

    /* FAQ Mobile */
    .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-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure content area images are never too small */
.page-privacy-policy__content-area img {
    min-width: 200px;
    min-height: 200px;
}