/* style/cookies-policy.css */

/* Base Styles for the page content, ensuring text is visible on the dark body background */
.page-cookies-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the main body content, as shared.css body background is dark #0a0a0a */
    background-color: transparent; /* Main content area doesn't need its own background if body has one */
}

/* Fixed header offset */
.page-cookies-policy__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Desktop and mobile offset from shared.css */
    box-sizing: border-box;
}

.page-cookies-policy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cookies-policy__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cookies-policy__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-cookies-policy__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cookies-policy__hero-description {
    font-size: 1.2em;
    line-height: 1.8;
    color: #f0f0f0;
}

/* Main content area - light background for readability of long text */
.page-cookies-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Explicitly white background for content area */
    color: #333333; /* Dark text for readability on white background */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-sizing: border-box;
}

.page-cookies-policy__container {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-cookies-policy__section-title:first-of-type {
    margin-top: 0;
}

.page-cookies-policy__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-cookies-policy__paragraph a {
    color: #017439; /* Links in content */
    text-decoration: underline;
}

.page-cookies-policy__paragraph a:hover {
    color: #005a2e; /* Darker green on hover */
}

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

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

.page-cookies-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.1);
}

/* Call to action section */
.page-cookies-policy__cta-section {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid #eee;
}

.page-cookies-policy__cta-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cookies-policy__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-cookies-policy__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cookies-policy__btn-primary {
    background: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
    border: 2px solid #C30808;
}

.page-cookies-policy__btn-primary:hover {
    background: #a30707;
    border-color: #a30707;
    transform: translateY(-2px);
}

.page-cookies-policy__btn-secondary {
    background: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-cookies-policy__btn-secondary:hover {
    background: #005a2e;
    border-color: #005a2e;
    transform: translateY(-2px);
}

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

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

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f5f5f5;
    color: #333333;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-cookies-policy__faq-question:hover {
    background-color: #ebebeb;
}

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

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
    transform: rotate(45deg);
}

.page-cookies-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
    font-size: 1em;
}

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

.page-cookies-policy__faq-answer p {
    margin: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cookies-policy__hero-title {
        font-size: 2.2em;
    }
    .page-cookies-policy__hero-description {
        font-size: 1em;
    }
    .page-cookies-policy__section-title {
        font-size: 1.8em;
    }
    .page-cookies-policy__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cookies-policy__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-cookies-policy__hero-title {
        font-size: 1.8em;
    }
    .page-cookies-policy__hero-description {
        font-size: 0.9em;
    }
    .page-cookies-policy__content-area {
        padding: 30px 15px;
    }
    .page-cookies-policy__container {
        max-width: 100%;
        padding: 0 10px;
    }
    .page-cookies-policy__section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-cookies-policy__paragraph,
    .page-cookies-policy__list-item {
        font-size: 1em;
    }
    .page-cookies-policy__list {
        margin-left: 20px;
    }
    .page-cookies-policy__image {
        margin: 20px auto;
    }
    .page-cookies-policy__cta-section {
        padding: 30px 20px;
        margin-top: 40px;
    }
    .page-cookies-policy__cta-title {
        font-size: 1.8em;
    }
    .page-cookies-policy__cta-description {
        font-size: 1em;
    }
    .page-cookies-policy__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-cookies-policy__btn-primary,
    .page-cookies-policy__btn-secondary {
        width: 100%; /* Full width for buttons on mobile */
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cookies-policy__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 20px;
    }
    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px 20px;
    }

    /* Enforce image responsiveness */
    .page-cookies-policy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cookies-policy__section,
    .page-cookies-policy__card,
    .page-cookies-policy__container,
    .page-cookies-policy__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific for hero image to prevent overflow on mobile if parent has padding */
    .page-cookies-policy__hero-section .page-cookies-policy__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Maintain height to cover section */
        object-fit: cover !important;
    }
    .page-cookies-policy__hero-section .page-cookies-policy__hero-overlay {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }
    .page-cookies-policy__hero-section .page-cookies-policy__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast adjustments for specific backgrounds */
.page-cookies-policy__dark-bg {
    color: #ffffff;
    /* Background handled by hero image/overlay */
}

.page-cookies-policy__light-bg {
    color: #333333;
    background: #ffffff;
}

/* Ensure link contrast on dark background if any */
.page-cookies-policy__dark-bg a {
    color: #FFFF00; /* Bright yellow for contrast on dark green/black */
    text-decoration: underline;
}
.page-cookies-policy__dark-bg a:hover {
    color: #FFD700;
}

/* Adjustments for custom colors */
.page-cookies-policy__btn-primary {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    border-color: #C30808;
}

.page-cookies-policy__btn-secondary {
    background: #017439; /* Primary brand color */
    color: #ffffff;
    border-color: #017439;
}

/* Ensure all images in content area have min-width 200px equivalent for mobile */
@media (max-width: 768px) {
    .page-cookies-policy__content-area img {
        min-width: 200px !important; /* Ensure content images are not too small */
        width: 100% !important;
        height: auto !important;
    }
}
/* Ensure content area images are never smaller than 200px */
.page-cookies-policy__content-area img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters on images */
.page-cookies-policy img {
    filter: none !important;
}