/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Use shared background, default to white */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
    padding: 80px 0;
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #26A9E0; /* Fallback for image load */
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

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

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-gdpr__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-gdpr__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

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

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

/* Content Area */
.page-gdpr__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* Auxiliary color background */
    color: #333333; /* Dark text for light background */
}

/* Features/Principles Section */
.page-gdpr__features-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff; /* Light text for dark background */
}

.page-gdpr__features-section .page-gdpr__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-gdpr__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); /* Semi-transparent white card for dark background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #ffffff; /* Light text for card content */
}

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

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.5;
}

/* Rights Section */
.page-gdpr__rights-section {
    padding: 60px 0;
    background-color: #ffffff; /* Auxiliary color background */
    color: #333333; /* Dark text for light background */
}

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

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

/* Implementation Section */
.page-gdpr__implementation-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff; /* Light text for dark background */
}

.page-gdpr__implementation-section .page-gdpr__section-title {
    color: #ffffff;
}

.page-gdpr__implementation-section .page-gdpr__paragraph {
    color: #f0f0f0;
}

.page-gdpr__implementation-section .page-gdpr__list {
    color: #f0f0f0;
}

/* Security Section */
.page-gdpr__security-section {
    padding: 60px 0;
    background-color: #ffffff; /* Auxiliary color background */
    color: #333333; /* Dark text for light background */
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff; /* Light text for dark background */
}

.page-gdpr__faq-section .page-gdpr__section-title {
    color: #ffffff;
}

.page-gdpr__faq-list {
    margin-top: 40px;
}

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for 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;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for clickable area */
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 1000px; /* Sufficiently large to show content */
    padding-top: 10px;
}

/* Hide default marker for details summary */
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-gdpr__faq-item summary::marker {
    display: none;
}


/* Call to Action Section */
.page-gdpr__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-gdpr__cta-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-gdpr__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    box-sizing: border-box; /* Ensure padding/border are included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-gdpr__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-primary:hover {
    background-color: #1e87c0; /* Slightly darker primary */
    border-color: #1e87c0;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }

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

    .page-gdpr__hero-buttons,
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 80%; /* Make buttons wider on tablets */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__card-text,
    .page-gdpr__faq-answer p {
        font-size: 0.95em;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.3em;
    }

    .page-gdpr__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    
    /* Mobile image responsiveness */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-content,
    .page-gdpr__cta-content {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button responsiveness */
    .page-gdpr__cta-button,
    .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;
        padding-right: 15px;
        margin: 0 !important; /* Remove any default margins */
    }
    
    .page-gdpr__hero-buttons,
    .page-gdpr__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

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