/* style/gdpr.css */

/* Custom properties for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-gdpr {
    background-color: var(--color-background); /* Deep Green */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure all images are responsive by default */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
    border-radius: 8px;
    margin: 20px auto; /* Center images */
    object-fit: cover; /* Ensure images cover their area without distortion */
}

/* Section styling */
.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.page-gdpr__dark-section {
    background-color: var(--color-background); /* Ensure consistency for dark sections */
    color: var(--color-text-main);
}

.page-gdpr__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px; /* Adjust padding for hero */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1; /* Ensure content is above image if any overlap */
}

.page-gdpr__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-top: 0; /* Adjust margin if needed */
    margin-bottom: 0;
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-gdpr__sub-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--color-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-gdpr__text-block {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
}

.page-gdpr__text-block a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

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

.page-gdpr__card-section {
    padding: 60px 20px;
    background-color: var(--color-background);
}

.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-gdpr__card {
    background-color: var(--color-card-bg); /* Darker green for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

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

.page-gdpr__card-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* CTA Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-gdpr__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* White text for primary button */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    margin-left: 20px;
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 20px;
    background-color: var(--color-background);
}

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

.page-gdpr__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-deep-green); /* Slightly different background for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-question:hover {
    background-color: var(--color-primary);
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 15px;
    max-height: fit-content; /* Allow content to expand naturally */
}

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

.page-gdpr__faq-answer a {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Details/Summary specific styles */
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-gdpr__faq-item summary {
    list-style: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding: 60px 20px 30px;
    }
    .page-gdpr__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        padding: 40px 0 20px; /* Remove horizontal padding from section itself */
        padding-top: 10px !important; /* body handles --header-offset */
    }
    .page-gdpr__hero-content {
        padding: 0 15px; /* Apply padding to content inside hero section */
        max-width: 100%;
        width: 100%;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-gdpr__description {
        font-size: 1rem;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    /* General section padding for content */
    .page-gdpr__section:not(.page-gdpr__hero-section) {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__content-area,
    .page-gdpr__card-section,
    .page-gdpr__faq-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .page-gdpr__grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-gdpr__btn-secondary {
        margin-left: 0; /* Remove margin for stacked buttons */
    }
    .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;
    }
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }

    /* Images responsiveness */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* Padding for content inside these containers is handled by specific elements */
    }
    /* Hero image needs to break out of section padding to be edge-to-edge */
    .page-gdpr__hero-image {
        width: calc(100% + 30px) !important; /* Expand beyond section padding */
        max-width: calc(100% + 30px) !important;
        margin-left: -15px !important; /* Counteract section padding */
        margin-right: -15px !important;
        border-radius: 0 !important; /* Remove rounded corners for full edge-to-edge */
    }
}