/* style/gdpr.css */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* General background color */
}

/* HERO 主图区域 */
.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body padding-top is handled by shared.css */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

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

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

.page-gdpr__hero-content {
    background-color: #ffffff; /* Light background for hero content */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 90%;
    margin-top: -80px; /* Overlap with image slightly for visual appeal */
    position: relative;
    z-index: 1;
    color: #333333;
}

.page-gdpr__hero-title {
    font-size: clamp(24px, 3.5vw, 40px); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #E53935; /* Brand primary color for title */
}

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

.page-gdpr__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Content Area */
.page-gdpr__content-area {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__dark-section {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand gradient for dark sections */
    color: #ffffff;
    padding: 40px 20px;
}

.page-gdpr__section-title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

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

.page-gdpr p {
    margin-bottom: 15px;
    font-size: 16px;
}

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

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

.page-gdpr__image-container {
    text-align: center;
    margin: 30px 0;
}

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

/* Principles Section */
.page-gdpr__principle-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-gdpr__principle-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-gdpr__principle-item p {
    color: #f0f0f0; /* Lighter text for readability on dark background */
}

.page-gdpr__principle-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

/* FAQ展开折叠功能 */
.page-gdpr__faq-list {
    margin-top: 30px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    background-color: #ffffff;
    color: #333333;
    list-style: none; /* For details/summary */
}

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

.page-gdpr__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #555555;
}

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

.page-gdpr__action-text {
    text-align: center;
    margin-top: 30px;
    font-size: 17px;
}

/* Security Section */
.page-gdpr__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-gdpr__security-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.page-gdpr__security-item p {
    color: #f0f0f0;
}

.page-gdpr__security-icon {
    width: 250px; /* Minimum size > 200px */
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.page-gdpr__security-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-gdpr__security-text {
    text-align: center;
    margin-top: 30px;
    font-size: 17px;
    color: #f0f0f0;
}

/* Contact Section */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-gdpr__contact-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
}

.page-gdpr__contact-item p {
    color: #f0f0f0;
}

.page-gdpr__contact-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

/* 按钮与按钮容器 */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure responsiveness */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

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

.page-gdpr__btn-secondary:hover {
    background: #f0f0f0;
    color: #E53935;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on mobile */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* 通用图片与容器 */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 15px;
        line-height: 1.5;
    }

    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }

    .page-gdpr__hero-image-wrapper {
        max-height: 300px; /* Smaller hero image on mobile */
    }

    .page-gdpr__hero-content {
        width: 95%;
        margin-top: -60px;
        padding: 25px 15px;
    }

    .page-gdpr__hero-title {
        font-size: clamp(20px, 6vw, 30px); /* Adjust H1 for mobile */
    }

    .page-gdpr__hero-description {
        font-size: 16px;
    }

    .page-gdpr__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* General Content Area */
    .page-gdpr__content-area {
        margin: 20px auto;
        padding: 20px 15px;
        border-radius: 0; /* No border-radius on mobile for full width look */
        box-shadow: none;
    }

    .page-gdpr__section-title {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 20px;
    }

    .page-gdpr p {
        font-size: 15px;
    }

    /* Principles Section */
    .page-gdpr__principle-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }

    .page-gdpr__principle-item {
        padding: 20px;
    }

    .page-gdpr__principle-title {
        font-size: 18px;
    }

    /* FAQ展开折叠功能 */
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    /* Security Section */
    .page-gdpr__security-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }

    .page-gdpr__security-item {
        padding: 20px;
    }

    .page-gdpr__security-icon {
        width: 200px !important; /* Ensure minimum size */
        height: auto !important;
    }

    .page-gdpr__security-title {
        font-size: 18px;
    }

    /* Contact Section */
    .page-gdpr__contact-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }

    .page-gdpr__contact-item {
        padding: 20px;
    }

    .page-gdpr__contact-title {
        font-size: 18px;
    }

    /* 按钮与按钮容器 */
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        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;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column !important; /* Force vertical stacking */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr__content-area,
    .page-gdpr__faq-item,
    .page-gdpr__security-item,
    .page-gdpr__contact-item,
    .page-gdpr__hero-content,
    .page-gdpr__principle-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}