/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark body background #121212 */
    background-color: transparent; /* Assuming body handles the main background */
}

/* Header offset to prevent content from being hidden by fixed header */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below the fixed header */
    padding-bottom: 60px;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

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

.page-privacy-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted title color */
    font-weight: bold;
}

.page-privacy-policy__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: #f0f0f0;
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
    color: #ffffff;
    border-radius: 8px;
    margin-top: -40px; /* Overlap with hero for visual flow */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #FFFF00; /* Primary color for main section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid #017439;
    padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
    font-size: 1.6em;
    color: #017439; /* Secondary color for sub-section titles */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-privacy-policy strong {
    color: #FFFF00; /* Highlight important text */
}

.page-privacy-policy a {
    color: #017439; /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #FFFF00; /* Link hover color */
    text-decoration: underline;
}

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

.page-privacy-policy__list li {
    margin-bottom: 8px;
    color: #f0f0f0;
}

/* Image styles */
.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%;
}

.page-privacy-policy__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login button font color */
    border: 2px solid #C30808;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff;
}

.page-privacy-policy__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
    color: #FFFF00;
}

/* FAQ Section */
.page-privacy-policy__faq-list {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.page-privacy-policy__faq-item {
    background-color: #2a2a2a; /* Slightly darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFFF00; /* FAQ question color */
    cursor: pointer;
    background-color: #3a3a3a; /* Darker background for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

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

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes cross */
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-title {
        font-size: 2.5em;
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
    .page-privacy-policy__subsection-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-privacy-policy__hero-title {
        font-size: 2em;
    }
    .page-privacy-policy__hero-description {
        font-size: 1em;
    }
    .page-privacy-policy__content-area {
        padding: 40px 15px;
        margin-top: -20px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-privacy-policy__subsection-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* Ensure image containers also adapt */
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* FAQ responsiveness */
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 20px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__hero-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.6em;
    }
}