/* style/cookies-policy.css */

/* Core page styles */
.page-cookies-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--deep-navy); /* From shared.css body background */
}

/* Custom properties from color palette */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background color */
}

/* Hero Section */
.page-cookies-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-navy);
    color: var(--text-main);
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cookies-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

.page-cookies-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-cookies-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Not absolute, for normal flow */
    z-index: 1;
}

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

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

/* Content Sections */
.page-cookies-policy__content-section {
    padding: 60px 20px;
    background-color: var(--card-bg); /* Default background for content sections */
    color: var(--text-main);
}

.page-cookies-policy__dark-bg {
    background-color: var(--primary-color); /* Darker background for contrast */
    color: var(--text-main);
}

.page-cookies-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Inner padding for smaller screens */
}

.page-cookies-policy__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

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

.page-cookies-policy__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-cookies-policy__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-cookies-policy__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    max-width: 800px; /* Constrain image width in content */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-cookies-policy__cta-button,
.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-cookies-policy__cta-button,
.page-cookies-policy__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__cta-button:hover,
.page-cookies-policy__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    margin-left: 20px;
}

.page-cookies-policy__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--deep-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* Contact Section */
.page-cookies-policy__contact-section {
    padding: 60px 20px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cookies-policy__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

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

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

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

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

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

    /* Images responsiveness */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cookies-policy__hero-image-wrapper,
    .page-cookies-policy__container,
    .page-cookies-policy__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .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: 0 !important; /* Remove margin for stacking */
        margin-bottom: 15px; /* Add bottom margin for spacing */
    }

    .page-cookies-policy__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0; /* Reset gap for column layout */
    }
    .page-cookies-policy__button-group a:last-child {
        margin-bottom: 0; /* No bottom margin for the last button */
    }
}