/* style/gdpr.css */

/* Variables from shared.css: --primary-color (#26A9E0), --secondary-color (#FFFFFF), --header-offset */

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background if shared.css sets it to --secondary-color */
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Hero Section */
.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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a2d9f7 100%); /* Light blue gradient */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.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: 1000px; /* Limit hero image width slightly */
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 15px;
}

.page-gdpr__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f8ff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
    background: #d46c06; /* Darken #EA7C07 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Content Sections */
.page-gdpr__content-section {
    padding: 60px 20px;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
}

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

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #333333;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333333;
}

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

.page-gdpr__numbered-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

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

.page-gdpr__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__inline-link:hover {
    color: #1e87b7; /* Darken primary color */
}

/* Color contrast handling based on background */
.page-gdpr__light-bg {
    background-color: var(--secondary-color); /* White */
    color: #333333;
}

.page-gdpr__dark-bg {
    background-color: var(--primary-color); /* Blue */
    color: #ffffff;
}

.page-gdpr__dark-bg .page-gdpr__section-title,
.page-gdpr__dark-bg .page-gdpr__sub-title {
    color: #ffffff;
}

.page-gdpr__dark-bg .page-gdpr__paragraph,
.page-gdpr__dark-bg .page-gdpr__list-item {
    color: #f0f0f0;
}

.page-gdpr__dark-bg .page-gdpr__inline-link {
    color: #ffffff;
}

/* Image specific styles */
.page-gdpr__image-wrapper {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
}

.page-gdpr__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center image */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Contact Info Section */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
}

.page-gdpr__contact-info .page-gdpr__paragraph {
    color: #f0f0f0;
}

.page-gdpr__contact-button {
    margin-top: 30px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 20px;
    background-color: #f0f2f5; /* Light grey background for contrast */
    color: #333333;
}

.page-gdpr__faq-section .page-gdpr__section-title {
    color: var(--primary-color);
}

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

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

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough */
  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: #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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  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; /* 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: var(--primary-color);
  transform: rotate(45deg); /* Change to X when active */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__sub-title {
        font-size: 1.5em;
    }
    .page-gdpr__paragraph, .page-gdpr__list-item {
        font-size: 1em;
    }
}

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

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

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

    .page-gdpr__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

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

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

    .page-gdpr__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-gdpr__paragraph, .page-gdpr__list-item {
        font-size: 0.95em;
    }

    /* Image responsiveness for content images */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__image-wrapper {
        margin: 30px auto;
        padding: 0 5px; /* Adjust padding for small screens */
    }

    /* FAQ Mobile Styles */
    .page-gdpr__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
      font-size: 1em;
      margin-bottom: 0;
      width: calc(100% - 40px); /* Adjust width for toggle icon */
    }
    
    .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 no content area images are smaller than 200px */
.page-gdpr__image-wrapper img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific styling for content area images, enforcing min size */
.page-gdpr__content-section img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    object-fit: cover;
}

/* No CSS filter for images */
.page-gdpr img {
    filter: none !important; /* Ensure no filters are applied */
}