/* style/privacy-policy.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-light: #f8f9fa; /* Assuming a light body background based on recommendation */
    --border-color: #e0e0e0;
    --hover-color: #1e87b6; /* A slightly darker shade of primary for hover */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--background-light); /* Assuming light background for the page content */
}

/* Fixed header offset for main content */
.page-privacy-policy__hero-banner {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: var(--text-color-light);
    text-align: center;
    padding-bottom: 40px;
}

.page-privacy-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.page-privacy-policy__main-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-weight: bold;
}

.page-privacy-policy__intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.page-privacy-policy__content-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* White background for content sections */
}

.page-privacy-policy__section-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.page-privacy-policy__sub-title {
    font-size: 1.5em;
    color: var(--text-color-dark);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-privacy-policy a:hover {
    text-decoration: underline;
    color: var(--hover-color);
}

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

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

.page-privacy-policy__list-item-strong {
    color: var(--primary-color);
}

.page-privacy-policy__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    object-fit: cover;
}

/* FAQ Section Styles */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-privacy-policy__faq-list {
    margin-top: 40px;
}

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    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: var(--secondary-color);
    border: 1px solid var(--border-color);
    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: #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: var(--text-color-dark);
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: var(--hover-color);
    transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

.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;
    background: #fdfdfd;
    border-radius: 0 0 5px 5px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px !important;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-privacy-policy__hero-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
    }

    .page-privacy-policy__hero-content {
        padding: 30px 0;
    }

    .page-privacy-policy__main-title {
        font-size: 1.8em;
    }

    .page-privacy-policy__intro-text {
        font-size: 1em;
    }

    .page-privacy-policy__content-section,
    .page-privacy-policy__faq-section {
        padding: 40px 0;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-privacy-policy__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
    }

    .page-privacy-policy p,
    .page-privacy-policy li {
        font-size: 0.95em;
    }

    /* Image responsiveness for mobile */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        border-radius: 4px;
    }

    /* FAQ Mobile adjustments */
    .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); /* Adjust width for toggle icon */
    }
    
    .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;
    }
}