/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background #0a0a0a */
    background-color: transparent; /* body background is handled by shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css sets padding-top for body */
    padding-bottom: 60px;
    overflow: hidden;
    background: #0a0a0a; /* Dark background for the hero section */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__hero-content {
    max-width: 800px;
}

.page-gdpr__hero-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.page-gdpr__hero-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* For mobile */
    box-sizing: border-box; /* For mobile */
    white-space: normal; /* For mobile */
    word-wrap: break-word; /* For mobile */
}

/* Primary Button Style */
.page-gdpr__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0a0a0a; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-gdpr__btn-primary:hover {
    background-color: #e6c200;
    color: #000000;
}

/* General Section Styles */
.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

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

.page-gdpr__heading {
    font-size: 2.2em;
    color: #FFD700; /* Gold brand color for headings */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__content-block {
    font-size: 1.1em;
    line-height: 1.8;
    color: #e0e0e0;
}

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

.page-gdpr__content-block strong {
    color: #FFD700;
}

.page-gdpr__content-block a {
    color: #1E90FF; /* Blue for links */
    text-decoration: underline;
}

.page-gdpr__content-block a:hover {
    color: #0f6bbd;
}

.page-gdpr__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-gdpr__grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-gdpr__grid--reverse .page-gdpr__grid-item:first-child {
    order: 2; /* Reverse order for the first item */
}

.page-gdpr__grid--reverse .page-gdpr__grid-item:last-child {
    order: 1; /* Reverse order for the second item */
}


.page-gdpr__grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
}

.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-gdpr__list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 4px solid #1E90FF; /* Blue accent */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-gdpr__list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-gdpr__list li strong {
    color: #FFD700;
}

/* FAQ Section */
.page-gdpr__section--faq {
    background-color: #0f0f0f; /* Slightly lighter dark background for FAQ */
}

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

/* FAQ容器样式 */
.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #e0e0e0; /* Light text for dark background */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for expanded answer */
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1); /* Darker background for question */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-gdpr__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-gdpr__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #FFD700; /* Gold for FAQ questions */
}

/* 切换图标 */
.page-gdpr__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #1E90FF; /* Blue for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: #FFD700; /* Gold when active */
    transform: rotate(45deg); /* Rotate for minus sign */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.2em;
    }
    .page-gdpr__heading {
        font-size: 1.8em;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }
    .page-gdpr__grid--reverse .page-gdpr__grid-item:first-child {
        order: 1; /* Reset order for mobile */
    }
    .page-gdpr__grid--reverse .page-gdpr__grid-item:last-child {
        order: 2; /* Reset order for mobile */
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding-top: 0 !important; /* Ensure no double padding on mobile */
        padding-bottom: 40px;
    }
    .page-gdpr__hero-container {
        padding: 0 15px;
    }
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__hero-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 20px !important;
        font-size: 1em;
    }

    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-gdpr__heading {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .page-gdpr__content-block {
        font-size: 1em;
    }
    .page-gdpr__list li {
        padding: 12px 15px;
        font-size: 1em;
    }

    /* Images responsiveness for content area */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gdpr__grid-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Mobile */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
}