/* style/cookies-policy.css */

/* Base styles for the cookie policy page */
.page-cookies-policy {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-cookies-policy__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Brand color gradient */
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.page-cookies-policy__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Content Section - light background for better readability on long text */
.page-cookies-policy__content-section {
    background-color: #ffffff; /* Explicitly white background for long content */
    color: #333333; /* Dark text for white background */
    padding: 60px 0;
}

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

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

.page-cookies-policy__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cookies-policy__text-block {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9; /* Slightly off-white for contrast */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cookies-policy__text-block p {
    margin-bottom: 15px;
}

.page-cookies-policy__text-block ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-cookies-policy__text-block li {
    margin-bottom: 8px;
}

/* Images */
.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);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* CTA Button */
.page-cookies-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 300px; /* Limit button width */
    margin-top: 20px;
}

.page-cookies-policy__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-cookies-policy__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cookies-policy__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7bbd;
    transform: translateY(-2px);
}

.page-cookies-policy__contact-button {
    margin-top: 20px;
    display: block;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-cookies-policy__cta-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 0;
    text-align: center;
}

.page-cookies-policy__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-cookies-policy__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cookies-policy__cta-container .page-cookies-policy__cta-button {
    margin: 0 auto;
}

/* FAQ Section */
.page-cookies-policy__faq-section {
    background-color: #f0f0f0; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

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

.page-cookies-policy__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #e8f5f8; /* Lighter brand color */
    color: #26A9E0;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #d0e8ef;
    transition: background-color 0.3s ease;
}

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

.page-cookies-policy__faq-title {
    margin: 0;
    color: #26A9E0;
}

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

.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 20px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333; /* Dark text for answer */
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px; /* Padding for expanded state */
    padding-top: 0; /* Remove top padding to avoid double padding with question */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-cookies-policy__hero-title {
        font-size: 2em;
    }

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

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

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

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

    .page-cookies-policy__cta-description {
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Allow smaller images on mobile if needed, but still >= 200px from overall rule */
        min-height: unset;
    }
    
    .page-cookies-policy__hero-section,
    .page-cookies-policy__content-section,
    .page-cookies-policy__cta-section,
    .page-cookies-policy__faq-section,
    .page-cookies-policy__container,
    .page-cookies-policy__text-block,
    .page-cookies-policy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cookies-policy__text-block {
        padding: 15px;
    }

    .page-cookies-policy__cta-button,
    .page-cookies-policy__btn-primary,
    .page-cookies-policy__btn-secondary,
    .page-cookies-policy a[class*="button"],
    .page-cookies-policy a[class*="btn"] {
        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-cookies-policy__contact-button {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cookies-policy__cta-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-cookies-policy__faq-question {
        padding: 15px;
        font-size: 1em;
    }

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

    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}