/* style/gdpr.css */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #11A84E; /* Main Green */
    --secondary-color: #22C768; /* Lighter Green */
    --background-dark: #08160F; /* Deep Green Background */
    --card-bg: #11271B; /* Card Background */
    --text-main: #F2FFF6; /* Main Text Color */
    --text-secondary: #A7D9B8; /* Secondary Text Color */
    --border-color: #2E7A4E; /* Border Color */
    --glow-color: #57E38D; /* Glow Effect */
    --gold-color: #F2C14E; /* Gold Accent */
    --divider-color: #1E3A2A; /* Divider Color */
    --deep-green: #0A4B2C; /* Deeper Green */

    /* Button Gradient */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-dark); /* Ensure main content area matches body background if not overridden */
}

/* Ensure body padding-top is handled by shared.css, not here */
/* .page-gdpr should not have padding-top: var(--header-offset); */

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

/* --- Section Styles --- */
.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow issues */
}

.page-gdpr__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-gdpr__light-bg {
    background-color: var(--deep-green); /* Use deep green for contrast with dark bg sections */
    color: var(--text-main);
}

/* --- Hero Section --- */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    min-height: 500px;
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly darken image for text readability */
    display: block;
    filter: none; /* Ensure no CSS filter */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-gdpr__lead-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* --- Section Titles & Paragraphs --- */
.page-gdpr__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-gdpr p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Grid Layout for Principles & Compliance Steps --- */
.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

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

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-gdpr__card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- List Styles (for Rights Section) --- */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 30px;
}

.page-gdpr__list li {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-gdpr__list li strong {
    color: var(--gold-color);
}

/* --- Image & Text Layout --- */
.page-gdpr__image-text-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-gdpr__image-text-layout .page-gdpr__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-gdpr__image-text-layout .page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure no extra space below image */
    filter: none; /* Ensure no CSS filter */
}

.page-gdpr__image-text-layout .page-gdpr__list {
    flex: 2;
    min-width: 400px;
}

/* --- Call to Action Buttons --- */
.page-gdpr__cta-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Video Section --- */
.page-gdpr__video-section {
    padding: 60px 0;
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-gdpr__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%; /* Ensure width is set for video wrapper */
    background: var(--background-dark);
    margin: 30px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.page-gdpr__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
    filter: none; /* Ensure no CSS filter */
}

.page-gdpr__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Overlay above video to capture clicks */
    display: block;
    cursor: pointer;
    background: rgba(0,0,0,0); /* Transparent overlay */
}


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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-left: 15px;
    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(--text-secondary);
    line-height: 1.7;
}

.page-gdpr__faq-item:not([open]) .page-gdpr__faq-answer {
    display: none; /* Hide answer when not open */
}

/* --- Contact Section --- */
.page-gdpr__contact-info {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-top: 30px;
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-gdpr__inline-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__inline-link:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        padding: 0 20px;
    }

    .page-gdpr__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-gdpr__image-text-layout {
        flex-direction: column;
        gap: 30px;
    }

    .page-gdpr__image-text-layout .page-gdpr__image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-gdpr__image-text-layout .page-gdpr__list {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }

    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }

    .page-gdpr__lead-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 20px;
    }

    .page-gdpr p {
        font-size: 0.95rem;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.2rem;
    }

    .page-gdpr__list li {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .page-gdpr__cta-button,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Adjust margin for stacked buttons */
    }
    
    .page-gdpr__btn-secondary {
        margin-left: 0 !important; /* Remove left margin for stacking */
    }

    .page-gdpr__cta-wrapper {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add horizontal padding to wrapper */
    }

    .page-gdpr__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }
    
    /* Mobile image responsiveness */
    .page-gdpr img {
      max-width: 100%;
      height: auto;
      display: block;
      filter: none !important; /* Ensure no CSS filter on mobile */
    }
    
    /* Mobile video responsiveness */
    .page-gdpr video,
    .page-gdpr__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      filter: none !important; /* Ensure no CSS filter on mobile */
    }
    
    .page-gdpr__video-section,
    .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;
    }

    .page-gdpr__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }

    .page-gdpr__video-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

    /* General containers for mobile */
    .page-gdpr__section .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-gdpr__grid-container {
        padding: 0 15px; /* Adjust padding for grid items */
        gap: 20px;
    }

    /* Button containers for mobile */
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

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