/* style/gdpr.css */

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area */
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-gdpr__hero-section {
    padding-top: 10px; /* Adhering to fixed header spacing rule */
    text-align: center;
    background-color: #f0f0f0;
    padding-bottom: 40px;
}

.page-gdpr__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-gdpr__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 font size */
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-gdpr__content-section {
    padding: 40px 0;
    background-color: #ffffff; /* Light background for content */
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-gdpr__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    color: #333333;
}

.page-gdpr__paragraph a {
    color: #017439;
    text-decoration: underline;
}

.page-gdpr__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.page-gdpr__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__content-image {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-gdpr__list {
    flex: 1;
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: #333333;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-gdpr__list-item strong {
    color: #017439;
}

.page-gdpr__contact-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__contact-image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-gdpr__contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__btn-primary {
    background: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    background: #005f2c;
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background: #e0e0e0;
}

/* Specific colors for login/register buttons */
.page-gdpr__login-btn,
.page-gdpr__register-btn {
    background: #C30808; /* Custom color for Login/Register */
    color: #FFFF00; /* Custom font color for Login/Register */
    border: 2px solid #C30808;
}

.page-gdpr__login-btn:hover,
.page-gdpr__register-btn:hover {
    background: #a00606;
}


.page-gdpr__cta-section {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-gdpr__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px; /* Add padding to container */
}

/* Ensure all images adhere to min-size and no filters */
.page-gdpr img {
    min-width: 200px;
    min-height: 200px;
    /* No filter properties allowed */
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 15px;
    }

    .page-gdpr__hero-image {
        width: 90%;
    }

    .page-gdpr__main-title {
        font-size: clamp(2em, 4.5vw, 2.5em);
    }

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

    .page-gdpr__sub-title {
        font-size: 1.6em;
    }

    .page-gdpr__image-text-block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .page-gdpr__image-text-block--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-gdpr__content-image {
        max-width: 80%;
        width: 100%;
    }

    .page-gdpr__list {
        padding-left: 15px;
    }

    .page-gdpr__contact-block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .page-gdpr__contact-image {
        max-width: 70%;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 15px;
    }

    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 20px;
    }
    .page-gdpr__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0;
        box-shadow: none;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 10px;
    }
    .page-gdpr__description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* Content Section */
    .page-gdpr__content-section {
        padding: 20px 0;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-gdpr__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-gdpr__paragraph {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    .page-gdpr__image-text-block {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    .page-gdpr__image-text-block--reverse {
        flex-direction: column;
    }
    .page-gdpr__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }

    .page-gdpr__list {
        padding-left: 15px;
        font-size: 0.95em;
    }
    .page-gdpr__list-item {
        margin-bottom: 8px;
    }

    /* Contact Block */
    .page-gdpr__contact-block {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .page-gdpr__contact-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }
    .page-gdpr__contact-info {
        gap: 10px;
    }

    /* Buttons */
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important; /* Adjust padding for mobile */
    }

    /* Button Containers */
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    /* CTA Section */
    .page-gdpr__cta-section {
        padding: 30px 0;
    }
    .page-gdpr__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    .page-gdpr__cta-description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* General images (needed for the "必写清单") */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Placeholder for `__hero-carousel-section` (not present on GDPR page) */
    .page-gdpr__hero-carousel-section {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        /* Additional styles to ensure it does not affect layout if it were present */
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Placeholder for `__guide-box` and its children (not present on GDPR page) */
    .page-gdpr__guide-box {
        padding: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important; /* Ensure it doesn't cause layout issues */
    }
    .page-gdpr__guide-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-gdpr__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 0 !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__guide-card img {
        aspect-ratio: 250/350 !important;
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__guide-card--pos-1, .page-gdpr__guide-card--pos-2, .page-gdpr__guide-card--pos-3, .page-gdpr__guide-card--pos-4, .page-gdpr__guide-card--pos-5 {
        grid-column: span 1 !important; /* Fallback for grid if it were used */
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 0 !important;
        box-sizing: border-box !important;
    }
    /* Placeholder for `__home-content-box` (not present on GDPR page) */
    .page-gdpr__home-content-box {
        max-width: 100% !important;
        height: auto !important;
        border: none !important;
        box-shadow: none !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    .page-gdpr__home-content-inner {
        height: auto !important;
        overflow: visible !important;
    }
    /* Placeholder for `__blog-grid` (not present on GDPR page) */
    .page-gdpr__blog-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        display: grid !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}