/* style/gdpr.css */

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

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    min-height: 500px;
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
    filter: none; /* No CSS filter */
}

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

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-gdpr-text-main);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styling */
.page-gdpr__section {
    padding: 80px 20px;
    position: relative;
}

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

.page-gdpr__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--page-gdpr-text-main);
    text-align: center;
    margin-bottom: 40px;
}

.page-gdpr__text-block {
    font-size: 1rem;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 30px;
    text-align: justify;
}

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

.page-gdpr__card {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    color: var(--page-gdpr-text-main); /* Ensure text is readable on card background */
}

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

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

/* Image Inline */
.page-gdpr__image-inline {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
    filter: none; /* No CSS filter */
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

/* List Styling */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-gdpr__list-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: var(--page-gdpr-text-main);
}

.page-gdpr__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--page-gdpr-primary-color);
    margin-bottom: 10px;
}

.page-gdpr__list-text {
    font-size: 0.9rem;
    color: var(--page-gdpr-text-secondary);
}

/* Dark Section */
.page-gdpr__dark-section {
    background-color: var(--page-gdpr-deep-green); /* Example dark background for contrast */
    color: var(--page-gdpr-text-main);
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: var(--page-gdpr-text-main);
}

.page-gdpr__dark-section .page-gdpr__text-block {
    color: var(--page-gdpr-text-secondary);
}

/* DPO Contact */
.page-gdpr__contact-info {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-gdpr-primary-color);
    margin-bottom: 5px;
}

.page-gdpr__contact-value {
    font-size: 1.05rem;
    color: var(--page-gdpr-text-main);
    margin-bottom: 20px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-button-gradient);
    color: #ffffff; /* White text on dark gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--page-gdpr-primary-color);
    border: 2px solid var(--page-gdpr-primary-color);
    box-shadow: none;
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--page-gdpr-primary-color);
    color: #ffffff;
    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 */
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-gdpr-primary-color);
    cursor: pointer;
    background-color: var(--page-gdpr-card-bg);
    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.8rem;
    line-height: 1;
    color: var(--page-gdpr-primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-gdpr-text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__section-title {
        font-size: 2.2rem;
    }
    .page-gdpr__card-grid {
        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 15px;
        padding-top: 10px !important;
        min-height: 400px;
    }
    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }
    .page-gdpr__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-gdpr__section {
        padding: 40px 15px;
    }
    .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-gdpr__text-block {
        font-size: 0.95rem;
    }
    .page-gdpr__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card,
    .page-gdpr__list-item {
        padding: 20px;
    }
    .page-gdpr__card-title,
    .page-gdpr__list-title {
        font-size: 1.3rem;
    }
    .page-gdpr__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-gdpr__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__contact-info {
        padding: 25px;
    }
    .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; /* Ensure padding is applied to button content */
        padding-right: 15px; /* Ensure padding is applied to button content */
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* Mobile image, video, button overflow fixes */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-gdpr__video-section {
      padding-top: 10px !important;
    }
    .page-gdpr video,
    .page-gdpr__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .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-section {
      padding-top: 10px !important;
    }
    .page-gdpr__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

/* Ensure content area images are not too small */
.page-gdpr__content-area img,
.page-gdpr__principles-section img,
.page-gdpr__rights-section img,
.page-gdpr__security-section img,
.page-gdpr__dpo-section img,
.page-gdpr__faq-section img,
.page-gdpr__conclusion-section img {
    min-width: 200px;
    min-height: 200px;
}
/* For any image inside a card, list item, or text block */
.page-gdpr__card img,
.page-gdpr__list-item img,
.page-gdpr__text-block img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensure they are responsive */
    height: auto;
    display: block;
}

/* No filter on images */
.page-gdpr img {
    filter: none !important;
}

/* Contrast Fixes */
/* Body is dark, so text is light. Card BG is dark, so text is light. */
/* Buttons have specific colors. */
/* All custom colors are applied via CSS variables, ensuring consistency */
/* The current color scheme is dark background with light text, which inherently provides good contrast. */
/* Specific elements like primary buttons use a gradient background with white text, also good contrast. */
/* Secondary buttons use transparent background with primary color text, also good contrast. */