/* style/gdpr.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0d0d0d;
    --bg-light: #f8f9fa;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark);
    padding-top: 120px; /* Adjust for fixed header on desktop */
}

.page-gdpr h1, .page-gdpr h2, .page-gdpr h3, .page-gdpr h4, .page-gdpr h5, .page-gdpr h6 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.page-gdpr p {
    margin-bottom: 1em;
    color: var(--text-light);
}

.page-gdpr a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-gdpr strong {
    color: var(--primary-color);
}

.page-gdpr ul {
    list-style: disc inside;
    margin-bottom: 1em;
    padding-left: 20px;
    color: var(--text-light);
}

.page-gdpr li {
    margin-bottom: 0.5em;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg:f168bet,gdpr,hero,background,privacy,policy]') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.page-gdpr__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__cta-button--secondary:hover {
    background: #6a0000;
}

/* General Section Styling */
.page-gdpr__principles-section, 
.page-gdpr__rights-section, 
.page-gdpr__data-processing-section, 
.page-gdpr__cookies-section, 
.page-gdpr__contact-section, 
.page-gdpr__faq-section {
    padding: 60px 0;
}

.page-gdpr__dark-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    color: var(--text-light);
}

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-gdpr__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: justify;
    color: var(--text-light);
}

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

.page-gdpr__grid-item {
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

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

.page-gdpr__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-gdpr__grid-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Rights Section */
.page-gdpr__rights-list {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    color: var(--text-light);
}

.page-gdpr__rights-list li {
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
}

.page-gdpr__rights-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Data Processing Section */
.page-gdpr__content-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.page-gdpr__content-block {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
}

.page-gdpr__content-subtitle {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Cookies Section */
.page-gdpr__cookie-info {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-gdpr__cookie-subtitle {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-gdpr__image-centered {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
}

.page-gdpr__contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.page-gdpr__contact-link {
    color: var(--primary-color);
    font-weight: bold;
}

.page-gdpr__contact-link:hover {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg-dark-mode);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-dark-mode);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--primary-color);
}

.page-gdpr__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

.page-gdpr__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-light);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 8px 8px;
}

.page-gdpr__faq-answer p {
    margin-bottom: 0;
}

.page-gdpr__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__text-link:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        padding-top: 100px !important; /* Adjust for fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__hero-section {
        padding: 60px 0;
    }

    .page-gdpr__main-title {
        font-size: 2.2em;
    }

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
    }

    .page-gdpr__principles-section, 
    .page-gdpr__rights-section, 
    .page-gdpr__data-processing-section, 
    .page-gdpr__cookies-section, 
    .page-gdpr__contact-section, 
    .page-gdpr__faq-section {
        padding: 40px 0;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__text-block {
        margin-bottom: 20px;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }

    .page-gdpr__grid-item {
        padding: 25px;
    }

    .page-gdpr__icon {
        width: 80px;
        height: 80px;
    }

    .page-gdpr__grid-title {
        font-size: 1.3em;
    }

    .page-gdpr__rights-list {
        padding-left: 10px;
    }

    .page-gdpr__rights-list li {
        margin-bottom: 10px;
    }

    .page-gdpr__content-flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-gdpr__content-subtitle {
        font-size: 1.5em;
        margin-top: 20px;
    }

    .page-gdpr__image-full-width, .page-gdpr__image-centered {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-gdpr__cookie-info {
        padding: 20px;
    }

    .page-gdpr__cookie-subtitle {
        font-size: 1.4em;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
    }

    .page-gdpr__faq-question h3 {
        font-size: 1.1em;
    }

    .page-gdpr__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }

    .page-gdpr__faq-answer {
        padding: 0 20px;
    }

    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive */
    .page-gdpr img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
    }
    .page-gdpr__section, .page-gdpr__card, .page-gdpr__container, .page-gdpr__grid-item, .page-gdpr__cookie-info, .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-section .page-gdpr__container, .page-gdpr__principles-section .page-gdpr__container, .page-gdpr__rights-section .page-gdpr__container, .page-gdpr__data-processing-section .page-gdpr__container, .page-gdpr__cookies-section .page-gdpr__container, .page-gdpr__contact-section .page-gdpr__container, .page-gdpr__faq-section .page-gdpr__container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.6em;
    }
    .page-gdpr__cta-button {
        font-size: 0.9em !important;
        padding: 10px 20px !important;
    }
    .page-gdpr__grid-item {
        padding: 20px;
    }
    .page-gdpr__grid-title {
        font-size: 1.2em;
    }
    .page-gdpr__content-subtitle {
        font-size: 1.3em;
    }
    .page-gdpr__cookie-subtitle {
        font-size: 1.2em;
    }
    .page-gdpr__faq-question h3 {
        font-size: 1em;
    }
    .page-gdpr__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}