/* style/privacy-policy.css */

/* --- Base Styles for Privacy Policy Page --- */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Ensure consistency with shared body background */
}

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

.page-privacy-policy__section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.page-privacy-policy__section:last-of-type {
    border-bottom: none;
}

.page-privacy-policy__section-title {
    font-size: 32px;
    color: #26A9E0; /* Primary color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

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

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-privacy-policy__list li {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-privacy-policy__list li strong {
    color: #26A9E0; /* Highlight important terms */
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* --- 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); /* Fixed header spacing */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light blue gradient */
    overflow: hidden; /* Prevent content 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%;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain image width for better presentation */
}

.page-privacy-policy__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-privacy-policy__main-title {
    font-size: 44px;
    color: #26A9E0; /* Main title color */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-privacy-policy__intro-description {
    font-size: 18px;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box; /* Include padding/border in width */
}

.page-privacy-policy__cta-button:hover {
    background: #1a7bb7; /* Slightly darker primary on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-privacy-policy__faq {
    background-color: #f9f9f9; /* Light background for FAQ section */
    padding-top: 60px;
    padding-bottom: 60px;
}

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

/* 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.08);
}

/* 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.3s ease;
    padding: 0 15px;
    opacity: 0;
    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, value large enough */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff; /* White background for answer */
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.05);
}

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

.page-privacy-policy__faq-question:hover {
    background: #1a7bb7; /* Darker shade on hover */
    border-color: #1a7bb7;
}

.page-privacy-policy__faq-question:active {
    background: #146194; /* Even darker on active */
}

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

/* Toggle icon */
.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff; /* White 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: 28px;
    height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
    color: #ffffff; /* Keep white even when active */
}

/* --- Contact Link Specific Style --- */
.page-privacy-policy__contact-link {
    font-weight: bold;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .page-privacy-policy__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section {
        padding: 40px 0;
    }

    .page-privacy-policy__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-privacy-policy__sub-title {
        font-size: 20px;
    }

    .page-privacy-policy p,
    .page-privacy-policy__list li {
        font-size: 15px;
    }

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

    .page-privacy-policy__main-title {
        font-size: 32px;
    }

    .page-privacy-policy__intro-description {
        font-size: 16px;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image Mobile Adjustments */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-privacy-policy__hero-image img {
        border-radius: 4px;
    }

    /* FAQ Mobile Adjustments */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 16px;
        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;
    }

    /* Content area image sizing */
    .page-privacy-policy__image {
        min-width: 200px !important; /* Enforce minimum size for content images */
        min-height: 200px !important;
        width: 100% !important; /* Ensure it takes full available width */
        height: auto !important;
    }
    /* Ensure no horizontal scroll for content areas */
    .page-privacy-policy__section {
        overflow-x: hidden;
    }
}

/* Ensure content area images meet minimum size requirements */
.page-privacy-policy__container img {
    min-width: 200px;
    min-height: 200px;
}
/* Specific override for any image within .page-privacy-policy that might be targeted by a generic rule */
.page-privacy-policy img:not(.shared-header img, .shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}
/* Override for specific image classes to ensure min-size */
.page-privacy-policy__image {
    min-width: 200px;
    min-height: 200px;
}