/* style/gdpr.css */

/* --- General Styles --- */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* Inherited from shared.css or explicit for consistency */
}

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

.page-gdpr__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-gdpr__section--intro {
    background-color: #ffffff;
}

.page-gdpr__section--principles {
    background-color: #8B0000; /* Dark red background */
    color: #ffffff; /* Light text */
}

.page-gdpr__section--rights {
    background-color: #fcfcfc;
}

.page-gdpr__section--data-handling {
    background-color: #ffffff;
}

.page-gdpr__section--security {
    background-color: #8B0000; /* Dark red background */
    color: #ffffff; /* Light text */
}

.page-gdpr__section--retention {
    background-color: #fcfcfc;
}

.page-gdpr__section--international {
    background-color: #ffffff;
}

.page-gdpr__section--contact {
    background-color: #fcfcfc;
    text-align: center;
}

.page-gdpr__section--faq {
    background-color: #ffffff;
}

.page-gdpr__section--related-links {
    background-color: #fcfcfc;
    text-align: center;
    padding-bottom: 80px;
}

.page-gdpr__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #8B0000; /* Dark red for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold accent */
    border-radius: 2px;
}

.page-gdpr__section-title--light {
    color: #FFD700; /* Gold for titles on dark background */
}

.page-gdpr__section-title--light::after {
    background-color: #ffffff; /* White accent on dark background */
}

.page-gdpr__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: #8B0000;
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.page-gdpr__paragraph--light {
    color: #ffffff;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 16px;
    padding-left: 0;
}

.page-gdpr__list--light {
    list-style: disc;
    color: #ffffff;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
}

.page-gdpr__list-item strong {
    color: #8B0000;
}

.page-gdpr__list--light .page-gdpr__list-item strong {
    color: #FFD700;
}

/* --- Main Banner Section --- */
.page-gdpr__main-banner {
    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); /* Account for fixed header */
    overflow: hidden; /* Ensure image doesn't overflow */
    background-color: #8B0000; /* Fallback background */
}

.page-gdpr__main-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-gdpr__main-banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
}

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

.page-gdpr__main-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- CTA Button --- */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    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: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--small {
    font-size: 16px;
    padding: 12px 30px;
    margin-top: 0;
}

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

.page-gdpr__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card--light {
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__card-title {
    font-size: 20px;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-gdpr__card-text {
    font-size: 16px;
    line-height: 1.6;
}

/* --- Image Styles --- */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto; /* Center images and add vertical spacing */
    object-fit: cover;
}

.page-gdpr__image-full-width {
    width: 100%;
    border-radius: 0;
}

.page-gdpr__image-center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Contact List --- */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__contact-item {
    font-size: 18px;
    margin-bottom: 15px;
}

.page-gdpr__contact-item a {
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__contact-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* --- Related Links --- */
.page-gdpr__link-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-gdpr__link-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #8B0000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid #8B0000;
}

.page-gdpr__link-button:hover {
    background-color: #FFD700;
    border-color: #FFD700;
    transform: translateY(-2px);
}

/* --- FAQ Styles --- */
.page-gdpr__faq-list {
    margin-top: 40px;
}

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.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; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Visually indicate open state, + becomes X */
}

.page-gdpr__faq-answer p {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

.page-gdpr__faq-answer a {
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__faq-answer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 42px;
    }
    .page-gdpr__main-description {
        font-size: 18px;
    }
    .page-gdpr__section-title {
        font-size: 32px;
    }
    .page-gdpr__sub-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 15px;
    }

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

    /* Mobile Hero Banner */
    .page-gdpr__main-banner {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__main-banner-content {
        padding: 20px;
    }

    .page-gdpr__main-title {
        font-size: 32px;
    }
    .page-gdpr__main-description {
        font-size: 16px;
    }
    .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-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-gdpr__sub-title {
        font-size: 20px;
    }
    .page-gdpr__paragraph {
        font-size: 16px;
    }
    .page-gdpr__list {
        margin-left: 20px;
    }
    .page-gdpr__card {
        padding: 20px;
    }
    .page-gdpr__card-title {
        font-size: 18px;
    }
    .page-gdpr__card-text {
        font-size: 15px;
    }
    
    /* Ensure all images are responsive */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      border-radius: 4px;
    }

    /* Image containers should also be responsive */
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__grid,
    .page-gdpr__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__link-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-gdpr__link-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* FAQ Mobile */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 16px;
        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 images are not too small */
/* This rule applies to any img within .page-gdpr that isn't a header/footer icon */
.page-gdpr img:not(.shared-header__logo-img):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific button responsive handling for multiple buttons */
.page-gdpr__link-group {
    display: flex; /* Ensure flex for wrapping */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .page-gdpr__link-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__link-button {
        width: 100%; /* Full width for stacked buttons */
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }
}