/* style/gdpr.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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;
}

/* Base styles for the GDPR page */
.page-gdpr {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
    color: var(--color-gold); /* Using gold for headings to stand out */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-gdpr h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-main); /* H2 can be main text color */
}

.page-gdpr h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--color-text-main);
}

.page-gdpr p {
    margin-bottom: 1em;
    color: var(--color-text-secondary); /* Secondary text color for paragraphs */
}

.page-gdpr a {
    color: var(--color-primary); /* Links in primary color */
    text-decoration: underline;
}

.page-gdpr a:hover {
    color: var(--color-secondary);
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height for hero image */
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-gdpr__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 30px;
    color: var(--color-text-main);
}

/* CTA Button */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text on dark button */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-gdpr__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

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


/* Content Section */
.page-gdpr__content-section {
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-gdpr__dark-bg {
    background-color: var(--color-deep-green); /* Slightly different dark background */
}

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

.page-gdpr__text-block {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

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

.page-gdpr__principle-card {
    background-color: var(--color-card-bg); /* Card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-border);
}

.page-gdpr__card-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-gdpr__card-title {
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Rights List */
.page-gdpr__rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-gdpr__right-item {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
}

/* Compliance List */
.page-gdpr__compliance-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__compliance-list li {
    background-color: var(--color-card-bg);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    color: var(--color-text-secondary);
}

.page-gdpr__compliance-list li strong {
    color: var(--color-text-main);
    margin-right: 10px;
}

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 800px; /* Max width for content images */
}

.page-gdpr__faq-image {
    margin-bottom: 40px;
}

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

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-main);
    background-color: var(--color-deep-green); /* Slightly darker for question header */
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
    border-bottom: 1px solid var(--color-border);
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}
/* Hide default details arrow */
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-gdpr__faq-item summary::marker {
    display: none;
}


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

.page-gdpr__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__principles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-gdpr__rights-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-gdpr h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-gdpr h3 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-gdpr__hero-content {
        padding: 15px;
    }

    .page-gdpr__hero-image {
        max-height: 300px;
    }

    .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__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;
    }

    .page-gdpr__cta-buttons {
      display: flex;
      flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-gdpr__content-section {
        padding: 40px 15px;
    }

    .page-gdpr__container {
        padding: 0;
    }

    .page-gdpr__principles-grid,
    .page-gdpr__rights-list {
        grid-template-columns: 1fr;
    }

    .page-gdpr__card-icon {
        width: 150px;
    }
    
    .page-gdpr__faq-section {
        padding: 40px 15px;
    }

    /* Images responsive on mobile */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/content must be responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section,
    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section {
        padding-left: 0;
        padding-right: 0;
    }
}