/* style/cookie-policy.css */

/* Variables and base styles for the page */
:root {
    --l88-primary: #26A9E0;
    --l88-secondary: #FFFFFF;
    --l88-login-btn: #EA7C07;
    --l88-black: #000000;
    /* Assuming shared.css defines --dark-bg-1, which is dark */
    --page-text-color: var(--l88-secondary); /* Light text for dark body background */
    --page-link-color: var(--l88-primary);
    --page-accent-color: var(--l88-login-btn);
    --section-padding-y: 60px;
    --container-max-width: 1200px;
}

.page-cookie-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text-color); /* Set text color for dark body background */
    background-color: transparent; /* Body handles the background, this is for main content */
}

/* Hero Section */
.page-cookie-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default for mobile, will change for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px var(--section-padding-y) 20px; /* Small top padding, then section padding */
    background-color: var(--l88-primary); /* Hero section background */
    color: var(--l88-secondary);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cookie-policy__hero-content-wrapper {
    position: relative;
    z-index: 2; /* Ensure text is above image */
    max-width: 800px;
    margin-bottom: 40px; /* Space between text and image on mobile */
}

.page-cookie-policy__main-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive font size, avoid huge fixed values */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--l88-secondary);
    letter-spacing: 0.5px;
}

.page-cookie-policy__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cookie-policy__hero-image-container {
    position: relative;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    z-index: 1; /* Image behind text */
}

.page-cookie-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Content Section */
.page-cookie-policy__content-section {
    padding: var(--section-padding-y) 20px;
    background-color: var(--l88-secondary); /* Default light background for content */
    color: var(--l88-black); /* Dark text for light background */
}

.page-cookie-policy__dark-section {
    background-color: #1a1a1a; /* Darker background for contrast sections */
    color: var(--l88-secondary); /* Light text for dark background */
}

.page-cookie-policy__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cookie-policy__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-cookie-policy__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit; /* Inherit color from parent section */
}

.page-cookie-policy__text-block p {
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.page-cookie-policy__text-block li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-cookie-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Buttons */
.page-cookie-policy__btn-primary,
.page-cookie-policy__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

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

.page-cookie-policy__btn-primary:hover {
    background-color: #1e87b3; /* Darken primary */
    border-color: #1e87b3;
}

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

.page-cookie-policy__btn-secondary:hover {
    background-color: var(--l88-primary);
    color: var(--l88-secondary);
}

/* FAQ Section (using details/summary) */
.page-cookie-policy__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--l88-black); /* Dark text for light background */
}

.page-cookie-policy__faq-item details > summary {
    list-style: none; /* Remove default marker */
}

.page-cookie-policy__faq-item details > summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-cookie-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: 600;
    cursor: pointer;
    background-color: #e0e0e0; /* Light grey for question header */
    color: var(--l88-black); /* Dark text for light background */
    border-bottom: 1px solid #ccc;
}

.page-cookie-policy__faq-question:hover {
    background-color: #d0d0d0;
}

.page-cookie-policy__faq-qtext {
    flex-grow: 1;
    font-size: 1.1rem;
}

.page-cookie-policy__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 25px;
    text-align: center;
}

.page-cookie-policy__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--l88-black); /* Dark text for light background */
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-cookie-policy__hero-section {
        flex-direction: row; /* Desktop: row layout for hero */
        text-align: left;
        padding-left: 60px;
        padding-right: 60px;
        justify-content: space-between;
    }

    .page-cookie-policy__hero-content-wrapper {
        margin-right: 40px;
        margin-bottom: 0;
        flex: 1;
    }

    .page-cookie-policy__hero-image-container {
        flex: 1;
        max-width: 50%; /* Adjust as needed */
    }

    .page-cookie-policy__section-title {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-cookie-policy__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cookie-policy__container,
    .page-cookie-policy__hero-content-wrapper,
    .page-cookie-policy__hero-image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-cookie-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cookie-policy__content-section,
    .page-cookie-policy__dark-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .page-cookie-policy__btn-primary,
    .page-cookie-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }
    
    /* If multiple buttons are in a group */
    .page-cookie-policy__hero-content-wrapper > a {
        display: block !important;
        margin-bottom: 15px !important;
    }
    .page-cookie-policy__hero-content-wrapper > a:last-child {
        margin-bottom: 0 !important;
    }

    .page-cookie-policy__text-block ul {
        margin-left: 20px;
    }
}

/* Ensure no image filters */
.page-cookie-policy img {
    filter: none;
}