/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Fixed header offset */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Section styling */
.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Remove default margin */
}

.page-gdpr__introduction-section,
.page-gdpr__data-usage-section,
.page-gdpr__rights-section,
.page-gdpr__faq-section,
.page-gdpr__contact-section {
    background-color: #1a1a2e; /* Inherit from body or use a slightly different dark tone for contrast */
    color: #ffffff;
}

.page-gdpr__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

/* Headings */
.page-gdpr__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Contrast with dark background, matches login/register font */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFFF00;
    border-radius: 2px;
}

.page-gdpr__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

/* Text blocks */
.page-gdpr__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Links within text blocks */
.page-gdpr__text-block a,
.page-gdpr__list-item a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-gdpr__text-block a:hover,
.page-gdpr__list-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Lists */
.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
    color: #f0f0f0;
}

.page-gdpr__numbered-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
    color: #f0f0f0;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Buttons */
.page-gdpr__hero-cta-buttons,
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-gdpr__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Feature cards */
.page-gdpr__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand primary background */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-gdpr__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__feature-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-gdpr__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-gdpr__right-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-gdpr__right-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-gdpr__right-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Pushes content to bottom */
}

/* FAQ section */
.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover */
    transition: background-color 0.3s ease;
}

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

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

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes a cross (X) or rotate for minus */
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

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

/* Contact section */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    color: #f0f0f0;
}

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

.page-gdpr__contact-item strong {
    color: #FFFF00;
}

.page-gdpr__contact-section a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-gdpr__contact-section a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 3em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
}

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

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

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

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

    .page-gdpr__hero-cta-buttons,
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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: 12px 20px;
        font-size: 1em;
    }

    /* Images responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that hold images/content */
    .page-gdpr__container,
    .page-gdpr__hero-container,
    .page-gdpr__features-grid,
    .page-gdpr__rights-grid,
    .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 */
    }

    /* Specific element padding for mobile */
    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__faq-answer {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
}

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

/* Ensure no filter on images */
.page-gdpr img {
    filter: none;
}