/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main color */
    background-color: var(--background-color, #B71C1C); /* Use custom background color, fallback to Deep Red */
}

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

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

.page-gdpr__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* As per fixed header spacing rule */
    padding-bottom: 40px;
    background-color: var(--background-color, #B71C1C);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 font size rule */
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__intro-text {
    font-size: 1.1em;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Button text wrapping */
    word-wrap: break-word; /* Button text wrapping */
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #333333; /* Dark text for light button */
    border: none;
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-gdpr__btn-secondary {
    background: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Text Main color */
    border: 1px solid #F2B544; /* Border color */
}

.page-gdpr__btn-secondary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #FFF5E1; /* Text Main color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 1.6em;
    color: #FFF5E1; /* Text Main color */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__paragraph {
    font-size: 1em;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 15px;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main color */
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    color: #FFF5E1; /* Text Main color */
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__link-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Button text wrapping */
    word-wrap: break-word; /* Button text wrapping */
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box; /* Button responsiveness */
}

.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-gdpr__card {
    background-color: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Text Main color */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #F4D34D; /* Gold color for card titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-gdpr__card-text {
    font-size: 0.95em;
    color: #FFF5E1; /* Text Main color */
}

.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-gdpr__contact-text {
    font-size: 1.1em;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 10px;
}

.page-gdpr__contact-link {
    color: #F4D34D; /* Gold color for links */
    text-decoration: underline;
}

.page-gdpr__contact-link:hover {
    color: #FFCC66; /* Glow color on hover */
}

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

.page-gdpr__faq-item {
    background-color: #D32F2F; /* Card BG color */
    border: 1px solid #F2B544; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF5E1; /* Text Main color */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #F4D34D; /* Gold color for questions */
    position: relative;
    list-style: none; /* Hide default marker for details summary */
}

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #FFF5E1; /* Text Main color */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #FFF5E1; /* Text Main color */
}

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

    /* HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Fixed header spacing rule */
        padding-bottom: 30px;
    }

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

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-gdpr__intro-text {
        font-size: 1em;
    }

    /* 按钮与按钮容器 */
    .page-gdpr__cta-button,
    .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-left: auto;
        margin-right: auto;
        display: block;
    }

    .page-gdpr__hero-section .page-gdpr__cta-button {
        margin-top: 20px;
    }

    /* 其他内容模块 */
    .page-gdpr__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-gdpr__sub-title {
        font-size: 1.4em;
        padding: 0 15px;
    }

    .page-gdpr__paragraph,
    .page-gdpr__list {
        padding: 0 15px;
    }

    .page-gdpr__list-item {
        margin-left: 30px; /* Adjust for padding */
    }

    /* 通用图片与容器 */
    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 15px; /* Ensure image container padding */
        box-sizing: border-box;
    }

    .page-gdpr__grid-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__contact-info {
        padding: 0 15px;
    }

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

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

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

    /* Ensure all content containers are responsive and prevent overflow */
    .page-gdpr__container,
    .page-gdpr__section,
    .page-gdpr__what-is-gdpr,
    .page-gdpr__commitment,
    .page-gdpr__your-rights,
    .page-gdpr__data-collection,
    .page-gdpr__security-measures,
    .page-gdpr__contact-privacy,
    .page-gdpr__faq {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure button containers also adapt */
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
    }
}