/* style/gdpr.css */

/* Custom properties for colors */
:root {
    --page-gdpr-bg: #08160F; /* Background */
    --page-gdpr-card-bg: #11271B; /* Card BG */
    --page-gdpr-text-main: #F2FFF6; /* Text Main */
    --page-gdpr-text-secondary: #A7D9B8; /* Text Secondary */
    --page-gdpr-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-gdpr-border: #2E7A4E; /* Border */
    --page-gdpr-glow: #57E38D; /* Glow */
    --page-gdpr-gold: #F2C14E; /* Gold */
    --page-gdpr-divider: #1E3A2A; /* Divider */
    --page-gdpr-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the GDPR page */
.page-gdpr {
    background-color: var(--page-gdpr-bg); /* Use custom background color */
    color: var(--page-gdpr-text-main); /* Default text color for the page content */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure headings have correct color for contrast */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
    color: var(--page-gdpr-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* H1 specific style, using clamp for responsiveness */
.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Min 2em, preferred 4vw, max 3.5em */
    font-weight: bold;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-gdpr__intro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive section titles */
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--page-gdpr-text-main);
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--page-gdpr-card-bg); /* Consistent background for hero section */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: var(--page-gdpr-card-bg);
    max-width: 900px;
    margin-top: 40px; /* Space below the image, avoiding text overlap */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-gdpr-border);
}

/* Section styling */
.page-gdpr__section {
    padding: 60px 0;
}

.page-gdpr__card-bg {
    background-color: var(--page-gdpr-card-bg);
}

/* List styles */
.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(--page-gdpr-text-secondary);
}

.page-gdpr__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-gdpr-glow);
}

/* Grid layout for rights section */
.page-gdpr__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Card styling */
.page-gdpr__card {
    background-color: var(--page-gdpr-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-gdpr-border);
    color: var(--page-gdpr-text-secondary);
}

.page-gdpr__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--page-gdpr-text-main);
}

/* Image content within sections */
.page-gdpr__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 800px; /* Recommended content image size */
    border: 1px solid var(--page-gdpr-border);
}

/* Call to action buttons */
.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-gdpr__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button is responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-btn-gradient);
    color: var(--page-gdpr-text-main);
    border: none;
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--page-gdpr-glow);
    color: var(--page-gdpr-bg); /* Dark text on light background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

/* Links within text */
.page-gdpr p a {
    color: var(--page-gdpr-glow); /* Use glow color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr p a:hover {
    color: var(--page-gdpr-gold); /* Gold on hover */
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-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-weight: bold;
    color: var(--page-gdpr-text-main);
    font-size: 1.1em;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: var(--page-gdpr-deep-green); /* Slightly darker hover */
}

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

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

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

/* For details/summary, hide default marker */
.page-gdpr__faq-item summary {
    list-style: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        max-width: 800px;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6em, 3vw, 2.2em);
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 3.5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gdpr__hero-section {
        min-height: auto;
        padding-bottom: 40px;
    }
    .page-gdpr__hero-image {
        max-height: 300px;
    }
    .page-gdpr__hero-content {
        padding: 20px;
        max-width: 90%;
        margin-top: 30px; /* Adjust margin for mobile */
    }
    .page-gdpr__main-title {
        font-size: clamp(1.5em, 5vw, 2em); /* Further adjust for smaller screens */
    }
    .page-gdpr__intro-text {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.4em, 4vw, 1.8em);
        margin-bottom: 30px;
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.2em, 3.5vw, 1.5em);
    }
    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-gdpr__list-item {
        padding-left: 25px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-gdpr__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-gdpr__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile image responsive rules (re-applying with !important) */
    .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,
    .page-gdpr__hero-section,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-content,
    .page-gdpr__cta-buttons,
    .page-gdpr__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Ensure no overflow */
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Color contrast enforcement - Dark background (#08160F) implies light text */
.page-gdpr {
    color: var(--page-gdpr-text-main); /* Light text on main page background */
}

.page-gdpr__card,
.page-gdpr__card-bg {
    background-color: var(--page-gdpr-card-bg);
    color: var(--page-gdpr-text-secondary); /* Slightly less bright text for cards for subtle contrast */
}

.page-gdpr__card h3 {
    color: var(--page-gdpr-text-main); /* Main text color for card titles */
}

.page-gdpr__btn-primary {
    color: var(--page-gdpr-text-main); /* White text on green gradient button */
}

.page-gdpr__btn-secondary {
    color: var(--page-gdpr-glow); /* Glow color text on transparent button */
}
.page-gdpr__btn-secondary:hover {
    color: var(--page-gdpr-bg); /* Dark text on glow background hover */
}

/* No CSS filters for images */
.page-gdpr img {
    filter: none; /* Explicitly ensure no filter */
}