/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light background sections */
    background-color: var(--black-color, #000000); /* Shared body background, text will be white on this */
    overflow-x: hidden; /* Prevent horizontal scroll on all devices */
}

/* Ensure the main content area has appropriate padding-top if shared.css doesn't handle body padding */
/* For this page, individual sections will handle their top padding to allow for varied designs. */

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

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__section-intro,
.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Color Contrast Classes */
.page-gdpr__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(80px + var(--header-offset, 120px)); /* Ensure space for fixed header */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff; /* White text on dark background */
}

.page-gdpr__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0; /* Slightly off-white for body text */
}

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2; /* Subtle background image */
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    margin: 10px;
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color, used for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* General Content Images */
.page-gdpr__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Principles Section */
.page-gdpr__principles-section .page-gdpr__section-title {
    color: #26A9E0;
}
.page-gdpr__principles-section .page-gdpr__section-intro {
    color: #555555;
}

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

.page-gdpr__principle-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-gdpr__principle-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__principle-description {
    font-size: 1em;
    color: #555555;
    text-align: left;
}

/* Rights Section */
.page-gdpr__rights-section .page-gdpr__section-title {
    color: #ffffff;
}
.page-gdpr__rights-section .page-gdpr__section-intro {
    color: #f0f0f0;
}

.page-gdpr__rights-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-gdpr__rights-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-gdpr__rights-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-gdpr__rights-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__rights-description {
    font-size: 1em;
    color: #e0e0e0;
    text-align: left;
}

/* Implementation Section */
.page-gdpr__implementation-section .page-gdpr__section-title {
    color: #26A9E0;
}
.page-gdpr__implementation-section .page-gdpr__section-intro {
    color: #555555;
}

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

.page-gdpr__implementation-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-gdpr__implementation-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__implementation-description {
    font-size: 1em;
    color: #555555;
    text-align: left;
}

/* Cookies Section */
.page-gdpr__cookies-section .page-gdpr__section-title {
    color: #ffffff;
}
.page-gdpr__cookies-section .page-gdpr__section-intro,
.page-gdpr__cookies-section .page-gdpr__paragraph {
    color: #f0f0f0;
}
.page-gdpr__cookies-section {
    padding: 60px 20px;
    text-align: center;
}

/* Contact Section */
.page-gdpr__contact-section .page-gdpr__section-title {
    color: #26A9E0;
}
.page-gdpr__contact-section .page-gdpr__section-intro,
.page-gdpr__contact-section .page-gdpr__paragraph {
    color: #555555;
}
.page-gdpr__contact-section {
    padding: 60px 20px;
    text-align: center;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.page-gdpr__contact-item {
    font-size: 1.1em;
    color: #333333;
}

/* FAQ Section */
.page-gdpr__faq-section .page-gdpr__section-title {
    color: #ffffff;
}
.page-gdpr__faq-section {
    padding: 60px 20px;
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    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.3em;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

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

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

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
    font-size: 1em;
    text-align: left;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__hero-description {
        font-size: 1.2em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__principle-title,
    .page-gdpr__rights-title,
    .page-gdpr__implementation-title {
        font-size: 1.3em;
    }
    .page-gdpr__faq-title {
        font-size: 1.2em;
    }
}

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

    /* Fixed header spacing for hero/first content section */
    .page-gdpr__hero-section {
        padding-top: calc(40px + var(--header-offset, 120px)) !important; /* Adjusted for mobile */
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-intro,
    .page-gdpr__paragraph {
        font-size: 1em;
    }

    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__implementation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Mobile image responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Maintain min size */
        min-height: 200px !important; /* Maintain min size */
    }

    /* Mobile button responsive */
    .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;
        margin: 10px auto !important; /* Center buttons and stack vertically */
    }

    .page-gdpr__contact-list {
        align-items: flex-start; /* Align left on mobile */
        text-align: left;
    }
    .page-gdpr__contact-item {
        font-size: 1em;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-title {
        font-size: 1.1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* General containers for mobile overflow */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__implementation-section,
    .page-gdpr__cookies-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}