/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 40px; /* General padding for main content */
}

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

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

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* 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: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-gdpr__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-gdpr__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.page-gdpr__light-bg {
    background-color: #FFFFFF;
    color: #333333; /* Dark text for light background */
}

.page-gdpr__dark-section {
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff; /* Light text for dark background */
}

.page-gdpr__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.page-gdpr__text-block strong {
    color: #017439; /* Highlight keywords with brand color */
}

.page-gdpr__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.page-gdpr__list li {
    margin-bottom: 10px;
}

.page-gdpr__contact-link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: #02a050;
}

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

.page-gdpr__right-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-gdpr__right-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight titles with a custom color */
}

.page-gdpr__right-description {
    font-size: 1rem;
    line-height: 1.7;
}

.page-gdpr__cta-buttons--center {
    margin-top: 40px;
}

/* Data Collection Section */
.page-gdpr__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-gdpr__image-wrapper {
    text-align: center;
}

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

.page-gdpr__content-image--right {
    float: right; /* For floating the image in the text flow */
    margin-left: 20px;
    margin-bottom: 15px;
    max-width: 45%; /* Adjust as needed for text wrapping */
}

.page-gdpr__contact-info {
    font-size: 1.05rem;
    margin-top: 30px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
}

.page-gdpr__faq-list {
    margin-top: 30px;
}

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

.page-gdpr__faq-item[open] {
    background-color: #ffffff;
    border-color: #017439;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-question:hover {
    background-color: #f0f0f0;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding-bottom: 30px;
    }

    .page-gdpr__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }

    .page-gdpr__description {
        font-size: 1.05rem;
    }

    .page-gdpr__section {
        padding: 50px 0;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    }

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

    .page-gdpr__content-grid {
        grid-template-columns: 1fr; /* Stack content on smaller screens */
        gap: 30px;
    }

    .page-gdpr__content-image--right {
        float: none;
        margin: 20px auto;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 20px !important;
    }

    .page-gdpr__hero-image-wrapper {
        max-height: 400px;
    }

    .page-gdpr__main-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .page-gdpr__description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

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

    .page-gdpr__container,
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__hero-section,
    .page-gdpr__content-grid,
    .page-gdpr__rights-grid,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .page-gdpr__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .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 smaller screens */
        font-size: 0.95rem !important;
    }

    /* 其他内容模块 */
    .page-gdpr__section {
        padding: 30px 0 !important;
    }

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

    .page-gdpr__text-block,
    .page-gdpr__list li,
    .page-gdpr__right-description {
        font-size: 0.95rem !important;
    }

    .page-gdpr__rights-grid {
        grid-template-columns: 1fr !important; /* Stack rights items */
        gap: 20px !important;
    }

    .page-gdpr__right-item {
        padding: 20px !important;
    }

    .page-gdpr__right-title {
        font-size: 1.3rem !important;
    }

    .page-gdpr__content-image--right {
        float: none;
        margin: 20px auto !important;
        max-width: 100% !important;
    }

    .page-gdpr__faq-section {
        padding: 30px 0 !important;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px !important;
        font-size: 1rem !important;
    }

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