.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--custom-bg, #ffffff); /* Ensure body background color compatibility */
}

.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-color: #017439;
}

.page-gdpr__hero-image-container {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.page-gdpr__main-title {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-gdpr__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-gdpr__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
}

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

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-gdpr__btn-margin-top {
    margin-top: 20px;
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
}

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

.page-gdpr__sub-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-gdpr__inline-link {
    color: #017439;
    text-decoration: underline;
}

.page-gdpr__inline-link:hover {
    color: #005a2e;
}

.page-gdpr__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 20px;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title {
    color: #ffffff;
}

.page-gdpr__principles-section,
.page-gdpr__security-section {
    padding: 60px 20px;
    text-align: center;
}

.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
}

.page-gdpr__grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-gdpr__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-gdpr__card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 15px;
}

.page-gdpr__card-description {
    font-size: 0.95em;
    line-height: 1.6;
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-gdpr__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    list-style: none;
    outline: none;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-item summary:hover {
    background-color: #e8f5e9;
}

.page-gdpr__faq-item[open] summary {
    background-color: #e8f5e9;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #017439;
    line-height: 1;
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    text-align: left;
}

.page-gdpr__cta-section {
    background-color: #017439;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-gdpr__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-gdpr__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Ensure all images meet minimum size requirements */
.page-gdpr img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2em;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

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

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

    .page-gdpr__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

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

    .page-gdpr__cta-description {
        font-size: 1.1em;
    }

    .page-gdpr__card-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-gdpr__hero-image-container {
        max-height: 300px;
    }

    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr__main-title {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-gdpr__hero-content {
        padding: 0 15px;
    }

    .page-gdpr__hero-description {
        font-size: 0.95em;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min-width */
        min-height: 200px !important; /* Enforce min-height */
    }
    
    .page-gdpr__content-area,
    .page-gdpr__principles-section,
    .page-gdpr__security-section,
    .page-gdpr__cookie-policy-section,
    .page-gdpr__updates-section,
    .page-gdpr__contact-section,
    .page-gdpr__cta-section,
    .page-gdpr__grid-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 (这里是 grid-container) */
    .page-gdpr__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-gdpr__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-gdpr__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

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

    .page-gdpr__text-block p {
        font-size: 0.95em;
    }

    /* 按钮与按钮容器 */
    .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-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    .page-gdpr__hero-content .page-gdpr__btn-primary,
    .page-gdpr__text-block .page-gdpr__btn-primary,
    .page-gdpr__text-block .page-gdpr__btn-secondary {
        display: block; /* Make buttons stack vertically */
        margin-left: auto;
        margin-right: auto;
    }

    .page-gdpr__cta-section {
        padding: 50px 15px;
    }

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

    .page-gdpr__cta-description {
        font-size: 1em;
    }

    .page-gdpr__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }

    /* 其他内容模块 */
    .page-gdpr__faq-list {
        margin-top: 20px;
    }
}