/* style/gdpr.css */

/* Base styles and variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark-body: #1a1a2e; /* From shared.css body background */
    --btn-register-bg: #C30808;
    --btn-register-text: #FFFF00;
    --btn-login-bg: #C30808;
    --btn-login-text: #FFFF00;
    --section-bg-light: #ffffff;
    --section-bg-dark: #017439;
    --border-color: #e0e0e0;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark-body);
}

.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;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 100px 20px;
    color: var(--text-light);
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.page-gdpr__hero-section .page-gdpr__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

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

.page-gdpr__hero-description {
    font-size: 1.25em;
    margin-bottom: 40px;
    line-height: 1.8;
}

.page-gdpr__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background-color: var(--btn-register-bg);
    color: var(--btn-register-text);
    border: 2px solid var(--btn-register-bg);
}

.page-gdpr__btn-primary:hover {
    background-color: #e00000;
    border-color: #e00000;
}

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

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

.page-gdpr__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
    margin-right: 15px;
}

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

/* Content Sections */
.page-gdpr__content-section {
    padding: 80px 0;
}

.page-gdpr__light-bg {
    background-color: var(--section-bg-light);
    color: var(--text-dark);
}

.page-gdpr__dark-section {
    background-color: var(--section-bg-dark);
    color: var(--text-light);
}

.page-gdpr__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__light-bg .page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-gdpr__dark-section .page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-gdpr__link {
    color: inherit;
    text-decoration: underline;
}

.page-gdpr__link:hover {
    color: var(--btn-register-text);
}

/* Images within content */
.page-gdpr__image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__image--left {
    float: left;
    margin-right: 40px;
    margin-bottom: 20px;
}

.page-gdpr__image--right {
    float: right;
    margin-left: 40px;
    margin-bottom: 20px;
}

.page-gdpr__image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

/* Clearfix for floated images */
.page-gdpr__content-section .page-gdpr__container::after {
    content: "";
    display: table;
    clear: both;
}

/* 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(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Contact Info */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 80px 0;
    background-color: var(--section-bg-light);
    color: var(--text-dark);
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #f5f5f5;
}

.page-gdpr__faq-question-title {
    margin: 0;
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-gdpr__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 3em;
    }

    .page-gdpr__section-title {
        font-size: 2em;
    }

    .page-gdpr__image--left,
    .page-gdpr__image--right {
        float: none;
        margin: 40px auto;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-gdpr__hero-description {
        font-size: 1em;
    }

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

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 0.9em;
    }

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

    .page-gdpr__section-title {
        font-size: 1.8em;
    }

    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__card-text {
        font-size: 0.95em;
    }

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

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-gdpr__hero-cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }

    .page-gdpr__section-title {
        font-size: 1.5em;
    }

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