/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body background is light */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* Darken image for text readability */
    /* No filter to change color, only brightness for contrast */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff; /* White text for dark hero background */
}

.page-gdpr__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Content Area */
.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Explicitly white background for content area */
    color: #333333; /* Dark text for white background */
}

.page-gdpr__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-gdpr__section-title {
    font-size: 2em;
    color: #017439; /* Brand color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-gdpr__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

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

.page-gdpr__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-gdpr__card-text {
    font-size: 0.95em;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

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

.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    color: #333333;
}

.page-gdpr__contact-text {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Primary button (used for "Đăng Ký Ngay" promotion) */
.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: #a30606; /* Slightly darker red on hover */
    border-color: #a30606;
}

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

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

/* Background color rules for contrast (as per requirements) */
.page-gdpr__dark-bg {
  background-color: #017439;
  color: #ffffff; /* Deep green background with white text */
}

.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333; /* White background with dark text */
}

/* Links within content */
.page-gdpr__paragraph a,
.page-gdpr__list-item a,
.page-gdpr__card-text a {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
}

.page-gdpr__paragraph a:hover,
.page-gdpr__list-item a:hover,
.page-gdpr__card-text a:hover {
    color: #005f2c;
}

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

    .page-gdpr__hero-section {
        padding: 60px 15px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

    .page-gdpr__content-area {
        padding: 30px 15px;
    }

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

    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    /* Images responsiveness for mobile */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure image containers also adapt */
    .page-gdpr__hero-section,
    .page-gdpr__content-area,
    .page-gdpr__container,
    .page-gdpr__grid,
    .page-gdpr__card,
    .page-gdpr__contact-info,
    .page-gdpr__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to specific elements if needed, not globally */
    }

    /* Buttons responsiveness for mobile */
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important; /* Take full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Adjust margin for stacking */
        padding-left: 15px !important; /* Ensure internal padding */
        padding-right: 15px !important; /* Ensure internal padding */
    }

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px; /* Space between stacked buttons */
        padding: 0 15px; /* Add horizontal padding to the container */
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.4em;
    }
}