/* style/cookies-policy.css */

/* Base styles for the Cookie Policy page */
.page-cookies-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #111, so use light text */
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-cookies-policy__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    background-color: #000080; /* Deep blue background for hero text */
    text-align: center;
    color: #ffffff;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

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

.page-cookies-policy__hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for main title */
}

.page-cookies-policy__hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: #f0f0f0;
}

/* Content Sections */
.page-cookies-policy__content-section {
    padding: 60px 20px;
}

.page-cookies-policy__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for content contrast */
    color: #ffffff;
}

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

.page-cookies-policy__section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #FFD700; /* Gold for section titles */
    text-align: center;
}

.page-cookies-policy__subsection-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for sub-titles */
}

.page-cookies-policy__paragraph {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc; /* Slightly softer white for paragraph text */
}

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

.page-cookies-policy__list-item {
    margin-bottom: 10px;
    font-size: 16px;
    color: #cccccc;
}

.page-cookies-policy__list-item strong {
    color: #FFD700; /* Gold for strong text in lists */
}

.page-cookies-policy__link {
    color: #FFD700; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cookies-policy__link:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}

.page-cookies-policy__image-wrapper {
    margin: 40px auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%; /* Ensure image fills its container */
}

/* Call to Action Section */
.page-cookies-policy__cta-section {
    background-color: #000080; /* Deep blue background for CTA */
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cookies-policy__cta-title {
    font-size: 36px;
    color: #FFD700; /* Gold for CTA title */
    margin-bottom: 20px;
}

.page-cookies-policy__cta-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cookies-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-cookies-policy__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #000080; /* Deep blue text for contrast */
    border-color: #FFD700;
}

.page-cookies-policy__btn-primary:hover {
    background-color: #e0b000; /* Darker gold on hover */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-cookies-policy__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border-color: #FFD700; /* Gold border */
}

.page-cookies-policy__btn-secondary:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #000080; /* Deep blue text on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

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

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

.page-cookies-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-cookies-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #000080; /* Deep blue for FAQ question background */
    border: 1px solid #FFD700; /* Gold border */
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cookies-policy__faq-question:hover {
    background: #000060; /* Slightly darker blue on hover */
    border-color: #ffffff; /* White border on hover */
}

.page-cookies-policy__faq-question:active {
    background: #000040;
}

.page-cookies-policy__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff; /* White text for FAQ question */
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cookies-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cookies-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #cccccc; /* Light text for answer */
    background: #000060; /* Slightly lighter blue for answer background */
    border-radius: 0 0 5px 5px;
}

/* FAQ expanded state - crucial for functionality */
.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    max-height: 2000px !important; /* Use !important and large value to ensure expansion */
    padding: 20px 15px !important;
    opacity: 1;
    border: 1px solid #FFD700; /* Gold border */
    border-top: none; /* No top border to merge with question */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cookies-policy__hero-title {
        font-size: 36px;
    }
    .page-cookies-policy__hero-description {
        font-size: 16px;
    }
    .page-cookies-policy__section-title {
        font-size: 28px;
    }
    .page-cookies-policy__subsection-title {
        font-size: 22px;
    }
    .page-cookies-policy__cta-title {
        font-size: 30px;
    }
    .page-cookies-policy__cta-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-cookies-policy {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cookies-policy__hero-section {
        padding: 80px 15px 40px;
        padding-top: 0 !important; /* Ensure no double padding if body handles it */
    }
    .page-cookies-policy__hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-cookies-policy__hero-description {
        font-size: 15px;
    }
    .page-cookies-policy__content-section {
        padding: 40px 15px;
    }
    .page-cookies-policy__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-cookies-policy__subsection-title {
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-cookies-policy__paragraph,
    .page-cookies-policy__list-item {
        font-size: 15px;
    }
    .page-cookies-policy__image-wrapper {
        margin: 30px auto;
    }

    /* Buttons responsive */
    .page-cookies-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-cookies-policy__btn-primary,
    .page-cookies-policy__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cookies-policy__cta-section {
        padding: 40px 20px;
    }
    .page-cookies-policy__cta-title {
        font-size: 26px;
    }
    .page-cookies-policy__cta-description {
        font-size: 15px;
    }

    /* FAQ responsive */
    .page-cookies-policy__faq-section {
        padding: 40px 15px;
    }
    .page-cookies-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cookies-policy__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
    }
    .page-cookies-policy__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 15px;
    }
    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px !important;
    }

    /* General image responsiveness */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cookies-policy__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cookies-policy__content-section,
    .page-cookies-policy__faq-section,
    .page-cookies-policy__cta-section {
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}