/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body background is light/white */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    background-color: #f8f8f8; /* Light background for the hero section */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

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

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    padding: 0 15px;
}

.page-gdpr__main-title {
    font-size: clamp(2.2em, 3vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: #017439; /* Primary brand color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__intro-text {
    font-size: 1.15em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for wrapping */
    box-sizing: border-box;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Primary brand color for text */
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Secondary button for dark sections */
.page-gdpr__btn-secondary--white-border {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-gdpr__btn-secondary--white-border:hover {
    background-color: #ffffff;
    color: #017439;
}


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

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

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

.page-gdpr__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__content-image--center {
    margin: 0 auto 30px;
}

.page-gdpr__subsection {
    margin-bottom: 30px;
}

.page-gdpr__subsection-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    padding: 0;
}

.page-gdpr__list li {
    margin-bottom: 10px;
    color: #333333;
}

.page-gdpr__text--white {
    color: #ffffff;
}

.page-gdpr__link--white {
    color: #FFFF00; /* Use a bright color for links on dark background */
    text-decoration: underline;
}

.page-gdpr__link--white:hover {
    color: #f0f0f0;
}

/* Dark Background Sections */
.page-gdpr__dark-section {
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff; /* White text for dark background */
}

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

.page-gdpr__section-description--white {
    color: #f0f0f0;
}

.page-gdpr__subsection-title--white {
    color: #FFFF00; /* Accent color for sub-titles on dark background */
}

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

.page-gdpr__right-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__right-title {
    font-size: 1.4em;
    color: #FFFF00; /* Accent color for titles */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-gdpr__right-item p {
    color: #f0f0f0;
}

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

.page-gdpr__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth transition if JS handles height */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #fcfcfc;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
    list-style: none; /* Hide default marker for summary */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    border-bottom-color: #e0e0e0;
}

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

.page-gdpr__faq-question:hover {
    background-color: #f0f0f0;
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-gdpr__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #f0f0f0; /* Separator for answer */
}

/* Conclusion Section */
.page-gdpr__conclusion {
    text-align: center;
    padding: 80px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__text--center {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__subsection-title {
        font-size: 1.6em;
    }
    .page-gdpr__rights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 10px 15px 40px;
    }
    .page-gdpr__hero-content {
        padding: 0 10px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important; /* Smaller on mobile */
        line-height: 1.3;
    }
    .page-gdpr__intro-text {
        font-size: 1em;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .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; /* Ensure padding for full width buttons */
        padding-right: 15px !important;
    }

    .page-gdpr__section {
        padding: 40px 15px;
    }
    .page-gdpr__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-gdpr__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-gdpr__subsection-title {
        font-size: 1.4em;
    }
    .page-gdpr__content-image,
    .page-gdpr__hero-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        display: block !important;
    }
    .page-gdpr__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-gdpr__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-gdpr__rights-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    /* Video section styles for mobile (even if not present, for robustness) */
    .page-gdpr__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-gdpr video,
    .page-gdpr__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}