/* style/cookies-policy.css */

.page-cookies-policy {
    /* Assuming body background is dark from shared.css (var(--dark-bg-1)) */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared */
}

.page-cookies-policy__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1a1a1a; /* Dark background for hero */
    color: #ffffff;
    overflow: hidden;
}

.page-cookies-policy__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-cookies-policy__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff; /* White text for better contrast on dark hero background */
    font-weight: bold;
}

.page-cookies-policy__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-cookies-policy__cta-button {
    display: inline-block;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cookies-policy__cta-button:hover {
    background-color: #1e87b9; /* Darker shade on hover */
    transform: translateY(-2px);
}

.page-cookies-policy__cta-button--bottom.page-cookies-policy__contrast-fix {
    background-color: #ffffff; /* Applied contrast fix background */
    color: #333333; /* Applied contrast fix text color */
    border: 2px solid #26A9E0; /* Retain some branding */
}

.page-cookies-policy__cta-button--bottom.page-cookies-policy__contrast-fix:hover {
    background-color: #f0f0f0; /* Lighter hover for white background */
    color: #000000;
    transform: translateY(-2px);
}

.page-cookies-policy__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-cookies-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    display: block;
}

.page-cookies-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: transparent; /* Inherit or ensure contrast */
    color: #ffffff; /* Default text color for content area */
}

.page-cookies-policy__dark-section {
    background-color: #1a1a1a; /* Darker section background */
    color: #ffffff;
}

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

.page-cookies-policy__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for main section titles */
    margin-bottom: 30px;
    margin-top: 40px;
    font-weight: bold;
    text-align: center;
}

.page-cookies-policy__sub-section-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cookies-policy__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

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

.page-cookies-policy__list-item {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.page-cookies-policy__list-item strong {
    color: #26A9E0; /* Highlight strong text */
}

.page-cookies-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-cookies-policy__faq-section {
    padding: 60px 20px;
    background-color: #0d0d0d; /* Even darker background for FAQ */
    color: #ffffff;
}

.page-cookies-policy__faq-list {
    margin-top: 40px;
}

.page-cookies-policy__faq-item {
    background-color: #1a1a1a; /* Slightly lighter than section for contrast */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-cookies-policy__faq-title {
    font-size: 1.3em;
    margin: 0;
    color: #ffffff; /* Ensure white text on brand color background */
}

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

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X */
    content: '−'; /* Change to minus sign */
}

.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: #222222; /* Darker background for answer */
}

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

.page-cookies-policy__faq-answer .page-cookies-policy__paragraph {
    color: #e0e0e0;
    margin-bottom: 0;
}

/* Links in content */
.page-cookies-policy__paragraph a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}

.page-cookies-policy__paragraph a:hover {
    color: #1e87b9;
}


/* Responsive Design */
@media (max-width: 768px) {
    .page-cookies-policy__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

    .page-cookies-policy__cta-button {
        width: 100% !important;
        padding: 12px 20px;
    }

    .page-cookies-policy__content-area {
        padding: 40px 15px;
    }

    .page-cookies-policy__section-title {
        font-size: 1.8em;
        text-align: left;
    }

    .page-cookies-policy__sub-section-title {
        font-size: 1.4em;
    }

    .page-cookies-policy__paragraph {
        font-size: 1em;
    }

    .page-cookies-policy__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        min-width: unset; /* Allow smaller on mobile if needed but still >200px due to max-width */
        min-height: unset;
    }

    /* Container for images to prevent overflow */
    .page-cookies-policy__hero-image-wrapper,
    .page-cookies-policy__container,
    .page-cookies-policy__faq-section,
    .page-cookies-policy__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* FAQ specific mobile styles */
    .page-cookies-policy__faq-question {
        padding: 15px 20px;
    }

    .page-cookies-policy__faq-title {
        font-size: 1.1em;
    }

    .page-cookies-policy__faq-answer {
        padding: 15px 20px;
    }

    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure buttons in groups wrap */
    .page-cookies-policy__cta-buttons,
    .page-cookies-policy__button-group,
    .page-cookies-policy__btn-container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}