/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
    padding-bottom: 60px; /* Space before footer */
}

/* Fixed Header Offset - applies to the main content area */
.page-privacy-policy {
    padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* 淡蓝色配色方案 */
    color: #333333; /* Ensure contrast on light background */
}

.page-privacy-policy__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-privacy-policy__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-privacy-policy__main-title {
    font-size: 3.2em;
    color: #26A9E0; /* Primary color */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-privacy-policy__description {
    font-size: 1.2em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__cta-button:hover {
    background: #d46c06; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Explicit white background for content */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: -40px; /* Overlap with hero for smoother transition */
    position: relative;
    z-index: 1;
}

.page-privacy-policy__section-container {
    padding: 0 20px;
}

.page-privacy-policy__section-title {
    font-size: 2em;
    color: #26A9E0; /* Primary color */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    font-weight: bold;
}

.page-privacy-policy__paragraph {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

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

.page-privacy-policy__list-item strong {
    color: #26A9E0; /* Highlight strong text with primary color */
}

.page-privacy-policy__image-content {
    width: 100%;
    height: auto;
    max-width: 800px; /* Limit image width in content */
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy a {
    color: #26A9E0; /* Primary color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: #1a7fb0; /* Darker primary on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.8em;
    }
    .page-privacy-policy__description {
        font-size: 1.1em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Offset - important for overriding desktop padding-top */
    .page-privacy-policy {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-privacy-policy__hero-section {
        padding: 40px 15px;
    }

    .page-privacy-policy__hero-image {
        margin-bottom: 20px;
    }

    .page-privacy-policy__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-privacy-policy__hero-content {
        padding: 0 10px;
    }

    .page-privacy-policy__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-area {
        padding: 20px 15px;
        margin-top: -20px;
    }

    .page-privacy-policy__section-container {
        padding: 0;
    }

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

    .page-privacy-policy__paragraph,
    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }

    /* All images in content area */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* All containers that might hold images or buttons */
    .page-privacy-policy__section-container,
    .page-privacy-policy__hero-container,
    .page-privacy-policy__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.3em;
    }
}

/* Ensure no filter is used on images */
.page-privacy-policy img {
    filter: none !important;
}