/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background (#FFFFFF) */
    background-color: #f8f8f8; /* Slightly off-white for sections */
}

/* Header offset for fixed header */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, #017439, #005f2e);
    color: #ffffff;
    overflow: hidden;
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-gdpr__main-title {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-gdpr__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808;
    color: #FFFF00;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* General section styles */
.page-gdpr__section {
    padding: 60px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

.page-gdpr__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__paragraph {
    color: #ffffff;
}

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

.page-gdpr__section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
    font-weight: bold;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: #ffffff;
}

.page-gdpr__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-gdpr__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.page-gdpr__dark-section .page-gdpr__card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__dark-section .page-gdpr__card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-gdpr__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px;
    min-width: 200px;
}

.page-gdpr__card-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

.page-gdpr__dark-section .page-gdpr__card-title {
    color: #ffffff;
}

.page-gdpr__card-text {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
}

.page-gdpr__dark-section .page-gdpr__card-text {
    color: #f0f0f0;
}

/* Security section specific styles */
.page-gdpr__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__security-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__security-item:last-child {
    margin-bottom: 0;
}

.page-gdpr__list-title {
    font-size: 20px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-gdpr__list-text {
    font-size: 16px;
    color: #555555;
}

.page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    min-width: 200px;
}

/* DPO contact info */
.page-gdpr__contact-info {
    background: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.page-gdpr__contact-info .page-gdpr__paragraph {
    color: #333333;
    font-size: 17px;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 18px;
}

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

.page-gdpr__contact-list a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__contact-list a:hover {
    text-decoration: underline;
}

/* Related policies */
.page-gdpr__policy-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    font-size: 17px;
}

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

.page-gdpr__policy-list a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__policy-list a:hover {
    text-decoration: underline;
}

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

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-gdpr__faq-question:active {
    background: #eeeeee;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-gdpr__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 32px;
    }
    .page-gdpr__section-title {
        font-size: 28px;
    }
    .page-gdpr__intro-text,
    .page-gdpr__paragraph,
    .page-gdpr__card-text,
    .page-gdpr__list-text,
    .page-gdpr__policy-list li,
    .page-gdpr__contact-list li,
    .page-gdpr__faq-question h3 {
        font-size: 16px;
    }
    .page-gdpr__card-title {
        font-size: 20px;
    }
}

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

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__hero-image img {
        border-radius: 4px;
    }

    .page-gdpr__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-gdpr__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__section {
        padding: 40px 15px;
    }

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

    .page-gdpr__paragraph {
        font-size: 15px;
        text-align: left;
    }

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

    .page-gdpr__card {
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-gdpr__card-title {
        font-size: 18px;
    }

    .page-gdpr__card-text {
        font-size: 15px;
    }

    .page-gdpr__security-item {
        padding: 20px;
    }

    .page-gdpr__list-title {
        font-size: 18px;
    }

    .page-gdpr__list-text {
        font-size: 15px;
    }

    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-gdpr__contact-info {
        padding: 25px;
    }

    .page-gdpr__contact-info .page-gdpr__paragraph,
    .page-gdpr__contact-list li {
        font-size: 16px;
    }

    .page-gdpr__policy-list {
        padding-left: 15px;
    }
    .page-gdpr__policy-list li {
        font-size: 15px;
    }

    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure content areas and cards have proper padding */
.page-gdpr__content-area,
.page-gdpr__text-block {
    background: #ffffff;
    color: #333333;
}

.page-gdpr p,
.page-gdpr li {
    color: #333333;
}

.page-gdpr__card {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-gdpr__dark-section {
    background: #017439;
    color: #ffffff;
}

.page-gdpr__btn-primary {
    background: #017439;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}