/* style/privacy-policy.css */

/* Base Styles */
.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, #f8f8f8); /* Inherit or default light gray */
}

.page-privacy-policy__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for mobile responsiveness */
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #017439; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-privacy-policy__section-title--light {
    color: #ffffff;
}

.page-privacy-policy__sub-section-title {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-privacy-policy ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-privacy-policy ul li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-privacy-policy a {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #C30808; /* A secondary accent color for 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); /* Ensure space below fixed header */
    background: linear-gradient(135deg, #017439, #005a2d); /* Darker green gradient */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't 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;
    z-index: 1; /* Ensure content is above image if layered */
}

.page-privacy-policy__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.page-privacy-policy__hero-image img:hover {
    transform: scale(1.03);
}

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

.page-privacy-policy__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: #e0e0e0;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-privacy-policy__cta-button:hover {
    background: #e62e2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area Specifics */
.page-privacy-policy__content-area {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-top: -60px; /* Overlap with hero for visual flow */
    position: relative;
    z-index: 10;
}

.page-privacy-policy__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-privacy-policy__contact-cta {
    text-align: center;
    margin-top: 50px;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-privacy-policy__btn-primary:hover {
    background: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background: #017439; /* Primary brand color for dark section */
    color: #ffffff;
    padding: 80px 20px;
}

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

.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #eaf7ed; /* Lighter green tint when active */
    border-color: #017439;
}

.page-privacy-policy__faq-question:hover {
    background: #f0f0f0;
    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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-privacy-policy__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439;
    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: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eaf7ed;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #C30808; /* Red for active toggle */
    background-color: #ffe0e0;
}

.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 25px;
    opacity: 0;
    background: #ffffff;
    color: #555555;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 10px 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.8em;
    }
    .page-privacy-policy__subtitle {
        font-size: 1.2em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__sub-section-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__content-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .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-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

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

    .page-privacy-policy__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-privacy-policy__content-area {
        padding: 20px;
        margin-top: -40px;
    }

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

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

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

    .page-privacy-policy__image-wrapper {
        margin: 20px auto;
    }

    .page-privacy-policy__image-wrapper img,
    .page-privacy-policy img { /* All images */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__btn-primary {
        padding: 12px 25px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Mobile */
    .page-privacy-policy__faq-section {
        padding: 50px 15px;
    }
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
    }
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 20px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px 20px !important;
    }
}

/* Ensure no image filter is used */
.page-privacy-policy img {
    filter: none;
}