/* style/privacy-policy.css */

/* Root variables for consistent theming */
:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #005f2e; /* Darker green for hover/accent */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #017439; /* Using primary color for dark background sections */
    --border-color: #e0e0e0;
    --button-register: #C30808; /* Red for register */
    --button-login: #C30808; /* Red for login */
    --button-text-yellow: #FFFF00; /* Yellow text for register/login buttons */
}

/* Base styles for the privacy policy page content */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light); /* Assuming body background is light */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: var(--background-dark); /* Dark green background */
    color: var(--text-light); /* White text for dark background */
}

.page-privacy-policy__hero-section .page-privacy-policy__container {
    padding: 0; /* Remove horizontal padding as section already has it */
}

.page-privacy-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-privacy-policy__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register); /* Use register button color for CTA */
    color: var(--button-text-yellow); /* Use yellow text for CTA */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-privacy-policy__cta-button:hover {
    background: #a90707; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.page-privacy-policy__content-section {
    padding: 60px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__sub-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.page-privacy-policy__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Images in content area */
.page-privacy-policy__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-privacy-policy__faq-toggle {
    font-size: 2em;
    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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

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

.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 25px;
    opacity: 0;
    background: #fcfcfc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid var(--border-color);
    border-top: none;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .page-privacy-policy {
        padding-top: var(--header-offset, 120px) !important;
        font-size: 15px;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }

    .page-privacy-policy__hero-section {
        padding: 60px 15px;
    }

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

    .page-privacy-policy__hero-description {
        font-size: 1em;
    }

    .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-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

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

    .page-privacy-policy__image-full {
        margin: 20px 0;
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-privacy-policy__content-section,
    .page-privacy-policy__faq-section {
        padding: 40px 0;
    }
    
    .page-privacy-policy__content-section .page-privacy-policy__container,
    .page-privacy-policy__faq-section .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__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    
    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        font-size: 1.8em;
        width: 28px;
        height: 28px;
    }
    
    .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 small images in content area */
.page-privacy-policy img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Color contrast enforcement */
.page-privacy-policy__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-privacy-policy__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Specific button styles based on color scheme */
.page-privacy-policy__btn-primary {
    background: var(--button-register);
    color: var(--button-text-yellow);
    border: none;
}

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

.page-privacy-policy__btn-secondary {
    background: var(--background-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}