/* style/gdpr.css */

/* Base Styles */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--site-bg, #FFFFFF);
}

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

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

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

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

.page-gdpr__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    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;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

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

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

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

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

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
}

.page-gdpr__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

.page-gdpr__intro-text,
.page-gdpr__outro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-gdpr__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.page-gdpr__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
}

.page-gdpr__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__image-block--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.page-gdpr h3 {
    font-size: 1.5em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr p {
    margin-bottom: 1em;
}

.page-gdpr__list {
    list-style: disc inside;
    margin-bottom: 1em;
    padding-left: 20px;
}

.page-gdpr__list li {
    margin-bottom: 0.5em;
}

.page-gdpr__list--security {
    list-style: none;
    padding-left: 0;
}

.page-gdpr__list--security li {
    position: relative;
    padding-left: 30px;
}

.page-gdpr__list--security li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-gdpr a {
    color: #017439;
    text-decoration: none;
}

.page-gdpr a:hover {
    text-decoration: underline;
}

/* Your Rights Grid */
.page-gdpr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-gdpr__grid-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #017439;
}

.page-gdpr__grid-item h3 {
    color: #017439;
    margin-top: 0;
    font-size: 1.3em;
}

/* Data Usage Section */
.page-gdpr__usage-points {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.page-gdpr__usage-item {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-gdpr__usage-item h3 {
    margin-top: 0;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
    background-color: #e0e0e0;
}

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

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

.page-gdpr__faq-answer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    color: #555555;
}

.page-gdpr__faq-answer p {
    margin-bottom: 0;
}

/* Specific Color Overrides for Buttons */
.page-gdpr__cta-buttons .page-gdpr__btn-primary.register-btn {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-gdpr__cta-buttons .page-gdpr__btn-primary.register-btn:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-gdpr__cta-buttons .page-gdpr__btn-primary.login-btn {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-gdpr__cta-buttons .page-gdpr__btn-primary.login-btn:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

    .page-gdpr__description {
        font-size: 1.1em;
    }

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

    .page-gdpr__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-gdpr__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-gdpr__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }

    .page-gdpr__usage-points {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-gdpr__main-title {
        font-size: 1.8em !important;
        padding: 0 10px;
    }
    .page-gdpr__description {
        font-size: 1em !important;
        padding: 0 15px;
    }

    /* 2. 产品展示图区域 (General content sections for this page) */
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding: 0 15px;
    }
    .page-gdpr__content-wrapper {
        gap: 20px;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__usage-points {
        gap: 20px;
    }

    /* 3. 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__image-block,
    .page-gdpr__content-wrapper,
    .page-gdpr__grid-item,
    .page-gdpr__usage-item,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* 4. 按钮与按钮容器 */
    .page-gdpr__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }
    .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 20px !important;
        text-align: center;
    }

    /* 5. 其他内容模块 */
    .page-gdpr__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-gdpr h3 {
        font-size: 1.3em;
    }
    .page-gdpr p,
    .page-gdpr li {
        font-size: 0.95em;
    }
    .page-gdpr__intro-text,
    .page-gdpr__outro-text {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    .page-gdpr__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-gdpr__faq-answer {
        padding: 15px;
    }
}