/* style/cookies-policy.css */

/* Base styles for the cookie policy page */
.page-cookies-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--background-color, #ffffff); /* Use shared background variable */
}

/* Hero Section - First visible section */
.page-cookies-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Brand color gradient */
    color: #ffffff; /* White text for dark background */
}

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

.page-cookies-policy__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.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.15; /* Subtle background image */
}

/* Primary Button */
.page-cookies-policy__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-cookies-policy__btn-primary:hover {
    background-color: #d46a00;
}

/* Content Area */
.page-cookies-policy__content-area {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

.page-cookies-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-cookies-policy__sub-section-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cookies-policy__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333333;
}

.page-cookies-policy__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cookies-policy__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333333;
}

.page-cookies-policy__list-item strong {
    color: #26A9E0;
}

.page-cookies-policy__text-link {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cookies-policy__text-link:hover {
    color: #1a7bbd;
}

/* FAQ Section */
.page-cookies-policy__faq-section {
    padding: 60px 20px;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for dark background */
}

.page-cookies-policy__faq-section .page-cookies-policy__section-title {
    color: #ffffff;
}

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

.page-cookies-policy__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-cookies-policy__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    list-style: none; /* Hide default marker */
    color: #ffffff;
    position: relative; /* For ::after positioning */
}

.page-cookies-policy__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-cookies-policy__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

/* Hide the custom toggle span as summary::after is used */
.page-cookies-policy__faq-toggle {
    display: none;
}

.page-cookies-policy__faq-item summary::after {
    content: '+';
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.3s ease;
    line-height: 1; /* Ensure vertical alignment */
    position: absolute; /* Position it correctly */
    right: 25px; /* Align with padding */
    top: 50%;
    transform: translateY(-50%);
}

.page-cookies-policy__faq-item[open] summary::after {
    content: '−'; /* Change to minus sign */
    transform: translateY(-50%) rotate(0deg); /* No rotation needed for '-' */
}

.page-cookies-policy__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #f0f0f0;
}

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

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

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

    .page-cookies-policy__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    .page-cookies-policy__paragraph,
    .page-cookies-policy__list-item,
    .page-cookies-policy__faq-item summary,
    .page-cookies-policy__faq-answer {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cookies-policy__section,
    .page-cookies-policy__card,
    .page-cookies-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-cookies-policy__faq-item summary::after {
      right: 15px; /* Adjust for mobile padding */
    }
}

/* Ensure no filter on images */
.page-cookies-policy img {
    filter: none !important;
}

/* Minimum image size enforcement in content area */
.page-cookies-policy__content-area img {
    min-width: 200px;
    min-height: 200px;
}