/* style/gdpr.css */

/* Custom Colors */
:root {
    --color-main: #11A84E;
    --color-accent: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F; /* Body background from shared.css */
    --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); /* Ensure consistency with body background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--color-deep-green); /* A slightly different dark background for hero */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and text */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__hero-content {
    max-width: 900px;
    color: var(--color-text-main);
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* White-ish text */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Inverted gradient on hover */
}

.page-gdpr__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--color-main);
    color: var(--color-main);
}

.page-gdpr__cta-button--secondary:hover {
    background: var(--color-main);
    color: var(--color-text-main);
}

.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

.page-gdpr__section--dark {
    background-color: var(--color-card-bg); /* Darker background for sections */
    color: var(--color-text-main);
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--color-gold); /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__text-block {
    font-size: 1.05em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    object-fit: cover;
}

.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-gdpr__list-item::before {
    content: '✅'; /* Checkmark for list items */
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2em;
    line-height: 1.6;
}

.page-gdpr__list-item strong {
    color: var(--color-text-main); /* Strong text within list items */
}

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

.page-gdpr__card {
    background-color: var(--color-deep-green); /* Darker background for cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__card-text {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push image to bottom */
}

.page-gdpr__card-image {
    width: 100%;
    max-width: 250px; /* Smaller images for cards */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-top: auto; /* Align to bottom of card */
}

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

.page-gdpr__faq-item {
    background-color: var(--color-deep-green);
    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.2em;
    color: var(--color-text-main);
    font-weight: bold;
    transition: background-color 0.3s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question,
.page-gdpr__faq-question:hover {
    background-color: var(--color-card-bg);
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-accent);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−';
}

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

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

.page-gdpr__section--contact {
    padding-bottom: 80px;
}

.page-gdpr__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-gdpr__contact-content {
    flex: 1;
}

.page-gdpr__contact-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 30px 15px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }
    .page-gdpr__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-gdpr__section,
    .page-gdpr__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-gdpr__container {
        padding: 20px 15px !important; /* Mobile padding for containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__contact-image-wrapper,
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__faq-item,
    .page-gdpr__cards-grid,
    .page-gdpr__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Prevent content overflow */
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-gdpr__cta-button,
    .page-gdpr__cta-button--secondary {
        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__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__container--flex {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__contact-image-wrapper {
        order: -1; /* Image above text on mobile for contact section */
    }

    .page-gdpr__section--dark .page-gdpr__container {
        padding-left: 20px !important; /* Adjust padding for inner container */
        padding-right: 20px !important;
    }
}

/* Color contrast enforcement - dark body background, light text */
.page-gdpr h1, .page-gdpr h2, .page-gdpr h3 {
    color: var(--color-gold); /* Headings use gold for visibility */
}

.page-gdpr p, .page-gdpr li {
    color: var(--color-text-secondary); /* Secondary text for paragraphs and lists */
}

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