/* style/privacy-policy.css */

:root {
    --primary-color: #017439; /* lo de88 brand green */
    --secondary-color: #FFFFFF; /* White */
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00;
}

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

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

.page-privacy-policy__section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-privacy-policy__section:last-of-type {
    border-bottom: none;
}

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

.page-privacy-policy__dark-bg .page-privacy-policy__link {
    color: var(--button-font-color); /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-privacy-policy__dark-bg .page-privacy-policy__link:hover {
    color: #ffd700; /* Darker yellow on hover */
}

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

.page-privacy-policy__light-bg .page-privacy-policy__link {
    color: var(--primary-color); /* Brand green for links on light background */
    text-decoration: underline;
}

.page-privacy-policy__light-bg .page-privacy-policy__link:hover {
    color: #005f2e; /* Darker green on hover */
}


/* Hero Section */
.page-privacy-policy__hero-section {
    text-align: center;
    padding-bottom: 40px;
}

.page-privacy-policy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light); /* For dark background */
}

.page-privacy-policy__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light); /* For dark background */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register); /* Custom register button color */
    color: var(--button-font-color); /* Custom register button font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--button-font-color);
}

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

/* General Section Titles */
.page-privacy-policy__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-privacy-policy__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
}

.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Info */
.page-privacy-policy__contact-info {
    margin-top: 30px;
    font-size: 1.1em;
    text-align: center;
}

.page-privacy-policy__contact-info p {
    margin-bottom: 10px;
}

.page-privacy-policy__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
    background: var(--button-login); /* Custom login button color */
    color: var(--button-font-color); /* Custom login button font color */
    border: 2px solid var(--button-font-color);
}

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

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

.page-privacy-policy__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    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.05);
}

.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 20px;
    opacity: 0;
    background: #f9f9f9;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    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: var(--text-dark);
}

.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;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    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; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for minus sign */
    border-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
    }

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

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

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-privacy-policy__list {
        margin-left: 15px;
    }

    /* Images 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Buttons responsiveness */
    .page-privacy-policy__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button group */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ responsiveness */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px); /* Adjust for toggle icon */
    }
    
    .page-privacy-policy__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-privacy-policy__faq-answer {
        padding: 0 15px;
    }
    
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
    }
}