/* style/privacy-policy.css */

/* Custom properties (for colors) */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
    --header-offset: 120px; /* Default, will be overridden by shared.css if present */
}

/* Base styles for the page content wrapper */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--background-color); /* Overall light background for the page */
    padding-bottom: 40px;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: var(--card-bg-color); /* Light background for the hero section */
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 450px; /* Limit height for hero image on desktop */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 450px; /* Ensure image fits wrapper */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Ensure content is above any potential background */
    z-index: 1;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit max width for button group */
    margin-left: auto;
    margin-right: auto;
}

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

.page-privacy-policy__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-privacy-policy__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 40px 0;
    background-color: var(--background-color);
}

.page-privacy-policy__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--card-bg-color); /* White background for the main article content */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 40px;
    box-sizing: border-box;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-privacy-policy__sub-title {
    font-size: 1.5em;
    color: var(--text-main-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    color: var(--text-main-color);
}

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

.page-privacy-policy__list li {
    margin-bottom: 8px;
}

.page-privacy-policy__list li strong {
    color: var(--primary-color);
}

.page-privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Image Figures */
.page-privacy-policy__image-figure {
    margin: 30px 0;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy__image-caption {
    font-size: 0.9em;
    color: #666;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
}

/* Contact CTA at the bottom */
.page-privacy-policy__contact-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__cta-text {
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Specific button for contact CTA */
.page-privacy-policy__contact-cta .page-privacy-policy__btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    max-width: 300px; /* Adjust max width for this specific button */
    margin: 0 auto; /* Center the button */
    display: block; /* Make it a block element to respect max-width */
}

.page-privacy-policy__contact-cta .page-privacy-policy__btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Responsive Styles */
/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-privacy-policy__article-wrap {
        padding: 25px 30px;
    }

    .page-privacy-policy__section-title {
        font-size: 2em;
    }

    .page-privacy-policy__sub-title {
        font-size: 1.4em;
    }
}

/* Mobile Specific Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Small top padding, overriding any shared.css padding if necessary */
        padding-bottom: 30px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em) !important; /* Adjust H1 for mobile, clamp to prevent overflow */
        padding: 0 10px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 2. 单栏长文容器 */
    .page-privacy-policy__article-wrap {
        padding: 20px 15px !important; /* Smaller padding for main content wrapper */
        margin: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section-title {
        font-size: 1.8em !important;
        margin-top: 30px;
        margin-bottom: 15px;
    }

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

    .page-privacy-policy__text-block,
    .page-privacy-policy__list {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .page-privacy-policy__list {
        margin-left: 20px;
    }

    /* 3. 通用图片与 figure */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Maintain minimum height for content images */
        object-fit: cover !important;
    }

    .page-privacy-policy__image-figure {
        margin: 20px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-privacy-policy__image-caption {
        font-size: 0.85em;
        padding: 8px 10px;
    }

    /* 4. 按钮与按钮容器 */
    .page-privacy-policy__contact-cta {
        padding: 20px !important;
        margin-top: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important; /* Full width on mobile */
    }

    .page-privacy-policy__cta-text {
        font-size: 1.1em !important;
        margin-bottom: 15px !important;
    }

    .page-privacy-policy__contact-cta .page-privacy-policy__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1em !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

/* Ensure content area images maintain minimum size */
.page-privacy-policy__article-wrap img {
    min-width: 200px;
    min-height: 200px;
}

/* Color Contrast Enforcement */
.page-privacy-policy__dark-section {
  background: var(--primary-color);
  color: #ffffff;
}

.page-privacy-policy__light-bg {
  background: var(--card-bg-color);
  color: var(--text-main-color);
}