/* 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 dark text on light background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    background: linear-gradient(90deg, #017439 0%, #005f2f 100%); /* Brand green gradient */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__hero-section .page-privacy-policy__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-privacy-policy__hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.page-privacy-policy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

.page-privacy-policy__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login text color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-privacy-policy__btn-primary:hover {
    background-color: #a30606;
}

.page-privacy-policy__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px; /* Limit image width in hero */
}

.page-privacy-policy__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure no extra space below image */
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* Explicitly set light background for content */
    color: #333333; /* Dark text for readability */
}

.page-privacy-policy__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for main titles */
    margin-bottom: 30px;
    text-align: center;
    padding-top: 20px;
}

.page-privacy-policy__sub-section-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-privacy-policy__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333333;
}

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

.page-privacy-policy__list-item {
    font-size: 1.05em;
    margin-bottom: 8px;
    color: #333333;
}

.page-privacy-policy__image-block {
    margin: 40px auto;
    text-align: center;
    max-width: 800px;
}

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

.page-privacy-policy__text-link {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__text-link:hover {
    color: #005f2f;
}

.page-privacy-policy__contact-info {
    margin-top: 30px;
    text-align: center;
}

/* FAQ Section */
.page-privacy-policy__faq-heading {
    margin-top: 60px;
    margin-bottom: 40px;
}

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

.page-privacy-policy__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    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: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: #f0f0f0;
}

.page-privacy-policy__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg);
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 20px 25px; /* Adjust padding for expanded state */
}

.page-privacy-policy__faq-answer .page-privacy-policy__paragraph {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-privacy-policy__hero-section .page-privacy-policy__container {
        flex-direction: column;
        text-align: center;
    }

    .page-privacy-policy__hero-content {
        text-align: center;
        max-width: 100%;
    }

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

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

    .page-privacy-policy__hero-image-wrapper {
        margin-top: 30px;
        max-width: 80%;
    }

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

    .page-privacy-policy__sub-section-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-bottom: 40px;
    }

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

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

    .page-privacy-policy__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-privacy-policy__hero-image-wrapper {
        max-width: 100%;
    }

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

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

    .page-privacy-policy__sub-section-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }

    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-privacy-policy__faq-title {
        font-size: 1.1em;
    }

    .page-privacy-policy__faq-answer {
        padding: 0 20px;
    }

    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    /* Mobile image responsiveness (mandatory) */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-privacy-policy__hero-section,
    .page-privacy-policy__content-area,
    .page-privacy-policy__container,
    .page-privacy-policy__image-block,
    .page-privacy-policy__faq-list,
    .page-privacy-policy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
    }

    /* Mobile button responsiveness (mandatory) */
    .page-privacy-policy__btn-primary {
        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;
    }
}