/* 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; /* Dark text for light background */
    background-color: #FFFFFF; /* Default body background is white */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-privacy-policy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.15; /* Subtle overlay */
}

.page-privacy-policy__hero-section > .page-privacy-policy__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-privacy-policy__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-privacy-policy__section-heading {
    font-size: 2.2em;
    color: #017439; /* Brand primary color */
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

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

.page-privacy-policy__paragraph {
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-privacy-policy__link {
    color: #017439;
    text-decoration: underline;
}

.page-privacy-policy__link:hover {
    color: #005f2e;
}

.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__contact-info {
    background-color: #f9f9f9;
    padding: 25px;
    border-left: 5px solid #017439;
    margin-top: 30px;
    border-radius: 5px;
}

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

.page-privacy-policy__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.page-privacy-policy__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.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: #555555;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px;
}

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

    .page-privacy-policy__main-heading {
        font-size: 2.2em;
    }

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

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

    .page-privacy-policy__content-area {
        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-heading {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

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

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

    .page-privacy-policy__image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        margin: 20px auto;
    }
    
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
    }

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

    .page-privacy-policy__faq-toggle {
        font-size: 1.5em;
    }

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

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

    /* Ensure all content containers are constrained */
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__text-block,
    .page-privacy-policy__contact-info,
    .page-privacy-policy__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}

/* Accessibility: Ensure contrast for brand colors */
.page-privacy-policy__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-privacy-policy__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-privacy-policy__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
}

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