/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text for dark body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

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

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-gdpr a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    background-color: #0d0d0d; /* Fallback for dark background */
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5);
}

.page-gdpr__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

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

.page-gdpr__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background: #26A9E0;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    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: #1e87b7;
    transform: translateY(-2px);
    text-decoration: none;
}

.page-gdpr__btn-secondary {
    display: inline-block;
    background: #ffffff;
    color: #26A9E0;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #26A9E0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-gdpr__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Cards */
.page-gdpr__card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    height: 100%;
    box-sizing: border-box;
}

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

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

/* Data Collection Section */
.page-gdpr__data-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-gdpr__data-collection-grid ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
}

.page-gdpr__data-collection-grid li {
    margin-bottom: 10px;
}

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

/* Data Protection Section */
.page-gdpr__protection-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

.page-gdpr__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: #ffffff;
}

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

.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: #f0f0f0;
    text-align: justify;
}

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

.page-gdpr__cta-bottom {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(38, 169, 224, 0.1);
    border-radius: 10px;
    color: #f0f0f0;
}

.page-gdpr__cta-text {
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Image specific styles */
.page-gdpr__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 10px;
    object-fit: cover;
}

.page-gdpr__image-center {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Section background colors */
.page-gdpr__dark-bg {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-gdpr__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

.page-gdpr__dark-section {
    background-color: #0a0a0a;
    color: #f0f0f0;
}

/* Responsive Styles */
@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;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-gdpr__hero-section {
        height: 450px;
    }
    .page-gdpr__hero-title {
        font-size: 2.5em;
    }
    .page-gdpr__hero-description {
        font-size: 1.1em;
    }
    .page-gdpr__btn-primary, .page-gdpr__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-gdpr__section-wrapper {
        padding: 20px 15px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__principles-grid, 
    .page-gdpr__data-collection-grid, 
    .page-gdpr__rights-grid, 
    .page-gdpr__protection-features, 
    .page-gdpr__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__image-full-width, .page-gdpr__image-center {
        margin: 20px auto !important;
    }

    /* Mobile button adaptation */
    .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 !important;
      padding-right: 15px !important;
      margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    
    .page-gdpr__cta-bottom .page-gdpr__btn-primary {
        margin-top: 20px;
    }

    .page-gdpr__cta-bottom {
        padding: 20px 15px;
    }
    .page-gdpr__cta-text {
        font-size: 1.1em;
    }

    /* Ensure containers for images/buttons also adapt */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-content,
    .page-gdpr__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-gdpr__principles-section,
    .page-gdpr__data-collection-section,
    .page-gdpr__your-rights-section,
    .page-gdpr__data-protection-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section {
        overflow-x: hidden;
    }
}