/* style/cookies-policy.css */

/* Base styles for the page content, ensuring light text on dark background as per Black Gold theme */
.page-cookies-policy {
    background-color: var(--bg-color, #0A0A0A); /* Default to #0A0A0A if --bg-color is not set */
    color: var(--text-main-color, #FFF6D6); /* Default to #FFF6D6 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-cookies-policy__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    margin-bottom: 40px;
    background-color: var(--card-bg-color, #111111); /* Consistent dark background */
}

.page-cookies-policy__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-cookies-policy__hero-content {
    max-width: 900px;
    margin: 20px auto 0 auto;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

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

.page-cookies-policy__intro-text {
    font-size: 1.1em;
    color: var(--text-main-color, #FFF6D6);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-cookies-policy__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4); /* Glow effect */
}

.page-cookies-policy__btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
    transform: translateY(-2px);
}

.page-cookies-policy__btn-secondary {
    background: transparent;
    color: var(--text-main-color, #FFF6D6);
    border: 2px solid var(--border-color, #3A2A12);
}

.page-cookies-policy__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFD36B;
    color: #FFD36B;
    transform: translateY(-2px);
}

/* Content Sections */
.page-cookies-policy__content-section {
    padding: 40px 0;
    margin-bottom: 30px;
    background-color: var(--card-bg-color, #111111);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cookies-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color, #F2C14E); /* Using primary color for titles */
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.page-cookies-policy__sub-title {
    font-size: 1.6em;
    color: var(--text-main-color, #FFF6D6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cookies-policy__text-block {
    font-size: 1.05em;
    color: var(--text-main-color, #FFF6D6);
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-cookies-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color, #FFF6D6);
}

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

.page-cookies-policy__list-item strong {
    color: var(--primary-color, #F2C14E);
}

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

/* General image styling for content area */
.page-cookies-policy img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper display and spacing */
    box-sizing: border-box;
}

/* Ensure no filter on images */
.page-cookies-policy img {
    filter: none; /* Explicitly ensure no filters are applied */
}

/* Ensure color contrast for elements, even if custom colors are used */
.page-cookies-policy__dark-bg {
    background: var(--card-bg-color, #111111);
    color: var(--text-main-color, #FFF6D6);
}

.page-cookies-policy__btn-primary {
    color: #111111; /* Dark text on bright button */
}
.page-cookies-policy__btn-secondary {
    color: var(--text-main-color, #FFF6D6); /* Light text on dark/transparent button */
}
.page-cookies-policy__btn-secondary:hover {
    color: #FFD36B; /* Light color on hover */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-cookies-policy {
        font-size: 15px;
        line-height: 1.6;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* HERO 主图区域 */
    .page-cookies-policy__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        margin-bottom: 20px;
    }

    .page-cookies-policy__hero-image-wrapper {
        max-height: 300px; /* Adjust hero image height for mobile */
    }

    .page-cookies-policy__hero-content {
        padding: 15px;
    }

    .page-cookies-policy__main-title {
        font-size: 1.8em; /* Adjust H1 size for mobile */
        margin-bottom: 10px;
    }

    .page-cookies-policy__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-cookies-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-cookies-policy__btn-primary,
    .page-cookies-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;
    }

    /* 长文金框区 (simulated by content sections) */
    .page-cookies-policy__content-section {
        padding: 25px 0;
        margin-bottom: 20px;
    }

    .page-cookies-policy__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cookies-policy__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    /* 通用图片与容器 */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* 游戏轮播 (Not applicable for this page, but placeholder for compliance) */
    /* .page-cookies-policy__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
    /* .page-cookies-policy__game-slide { flex: 0 0 160px; max-width: 160px; } */

    /* 合作品牌六宫格 (Not applicable for this page, but placeholder for compliance) */
    /* .page-cookies-policy__banners-top-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } */
    /* .page-cookies-policy__banner-item img {  } */

    /* 博客卡片区 (Not applicable for this page, but placeholder for compliance) */
    /* .page-cookies-policy__blog-masonry { grid-template-columns: 1fr; } */
    /* .page-cookies-policy__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
    /* .page-cookies-policy__blog-slide { flex: 0 0 100%; max-width: 100%; } */
}