/* style/cookies-policy.css */

/* Custom properties for colors */
:root {
    --page-bg: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

.page-cookies-policy {
    color: var(--text-main); /* Default text color for the page content area */
    background-color: var(--page-bg); /* Page background from custom properties */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom for content */
}

/* Fixed header spacing is handled by shared.css on the body element */
/* .page-cookies-policy__hero-section should have a small top padding, not var(--header-offset) */

.page-cookies-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, not --header-offset */
    background-color: var(--deep-green); /* Example background for hero section */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cookies-policy__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
}

.page-cookies-policy__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any background effects */
}

.page-cookies-policy__main-title {
    font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cookies-policy__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-cookies-policy__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cookies-policy__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--page-bg);
}

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

.page-cookies-policy__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 15px;
}

.page-cookies-policy__sub-section-title {
    font-size: 1.6em;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-cookies-policy__text-block {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-cookies-policy__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 800px; /* Ensure images in content area don't exceed a reasonable width */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-cookies-policy__list-item {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-cookies-policy__list-item strong {
    color: var(--text-main);
}

.page-cookies-policy__list-item a {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cookies-policy__list-item a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.page-cookies-policy__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--glow-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--glow-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cookies-policy__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--page-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-cookies-policy__faq-section {
    background-color: var(--card-bg); /* Use card background for FAQ section */
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--divider-color);
}

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

.page-cookies-policy__faq-item {
    background-color: var(--deep-green); /* Slightly darker background for each FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid transparent; /* No border by default */
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-cookies-policy__faq-item[open] .page-cookies-policy__faq-question {
    border-bottom: 1px solid var(--border-color); /* Border when open */
    background-color: var(--deep-green); /* Keep background consistent */
}

.page-cookies-policy__faq-question:hover {
    background-color: var(--divider-color); /* Lighter hover effect */
}

.page-cookies-policy__faq-qtext {
    flex-grow: 1;
}

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

.page-cookies-policy__faq-item[open] .page-cookies-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-cookies-policy__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--card-bg); /* Answer background */
}

/* Remove default details marker */
.page-cookies-policy__faq-item summary {
    list-style: none;
}
.page-cookies-policy__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-cookies-policy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cookies-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-cookies-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 size for mobile */
    }

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

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

    .page-cookies-policy__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-cookies-policy__sub-section-title {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .page-cookies-policy__text-block,
    .page-cookies-policy__list-item,
    .page-cookies-policy__faq-answer {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers with images are also responsive */
    .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: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness */
    .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;
        padding-left: 15px; /* Add padding to button itself */
        padding-right: 15px; /* Add padding to button itself */
    }
    
    /* Button containers responsiveness */
    .page-cookies-policy__cta-buttons,
    .page-cookies-policy__button-group,
    .page-cookies-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-cookies-policy__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* FAQ item spacing */
    .page-cookies-policy__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 20px 15px 20px;
    }
}