/* style/gdpr.css */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default for dark body background */
    background-color: #000000; /* Body background color from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure main content is below fixed header */
}

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

/* Color Scheme */
.page-gdpr__dark-bg {
    background-color: #000000; /* Dark background from body */
    color: #ffffff; /* Light text */
}

.page-gdpr__light-bg {
    background-color: #f0f0f0; /* Light background for contrast sections */
    color: #333333; /* Dark text */
}

/* Hero Section */
.page-gdpr__hero-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color for hero */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-gdpr__introduction-section,
.page-gdpr__what-is-gdpr,
.page-gdpr__implementation,
.page-gdpr__user-rights,
.page-gdpr__contact-info,
.page-gdpr__faq-section {
    padding: 60px 0;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.page-gdpr__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
}

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

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Important for max-width and height:auto to work consistently */
    margin: 0 auto; /* Center images */
}

.page-gdpr p {
    margin-bottom: 1em;
    font-size: 1.05em;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    padding-left: 0;
}

.page-gdpr__list li {
    margin-bottom: 0.5em;
}

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

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark sections */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__light-bg .page-gdpr__card {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__action-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
}

/* Contact Section */
.page-gdpr__contact-details {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

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

.page-gdpr__contact-list a {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    font-weight: bold;
}

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

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-gdpr__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    display: inline-block;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-gdpr__btn-secondary:hover {
    background-color: #005f2e;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for FAQ item */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ffffff; /* Text color for dark background */
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-gdpr__content-wrapper--reverse {
        flex-direction: column-reverse;
    }
    .page-gdpr__image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-gdpr__hero-section {
        padding: 60px 0;
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-gdpr__introduction-section,
    .page-gdpr__what-is-gdpr,
    .page-gdpr__implementation,
    .page-gdpr__user-rights,
.page-gdpr__contact-info,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 1.5em;
    }

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

    .page-gdpr__card {
        padding: 20px;
    }

    .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;
        margin-bottom: 15px; /* Add space between stacked buttons */
    }

    /* All images in content area must be responsive */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Ensure containers for images and content also adapt */
    .page-gdpr__container,
    .page-gdpr__content-wrapper,
    .page-gdpr__text-block,
    .page-gdpr__image-wrapper,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-gdpr__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__faq-question {
        padding-left: 15px;
        padding-right: 15px;
    }
}