/* style/privacy-policy.css */

/* General Styling for Privacy Policy Page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

/* 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); /* Desktop header offset */
    background: linear-gradient(135deg, #017439, #017439 50%, #005f2f); /* Brand green gradient */
    color: #FFFFFF;
    overflow: hidden; /* Ensure content 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;
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.page-privacy-policy__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    height: auto; /* Ensure image responsiveness */
    display: block; /* Remove extra space below image */
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Specific color for registration/login */
    color: #FFFF00; /* Specific font color for registration/login */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-privacy-policy__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #FFFFFF; /* Explicitly white for content sections */
}

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

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

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333333; /* Ensure dark text on light background */
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    color: #333333;
}

.page-privacy-policy__list-item strong {
    color: #017439; /* Highlight important terms with brand color */
}

.page-privacy-policy a {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #005f2f;
}

.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 8px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: #f9f9f9; /* Light background for FAQ section */
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

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

.page-privacy-policy__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-privacy-policy__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    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 {
    color: #C30808; /* Red for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign */
}

.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: #fdfdfd;
    border-radius: 0 0 8px 8px;
    color: #555555;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-top: none;
}

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

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

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

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

    .page-privacy-policy__content-area,
    .page-privacy-policy__section {
        padding: 30px 0;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    /* Mobile image responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__image-wrapper {
        margin: 20px 0;
        border-radius: 4px;
    }

    /* FAQ Mobile adjustments */
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
        border-radius: 6px;
    }

    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
        margin-bottom: 5px;
    }

    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        font-size: 24px;
        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;
    }
}