/* style/gdpr.css */

/* General styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF5E1); /* Default text color for the page */
  background-color: var(--page-bg, #B71C1C); /* Default background for the page */
}

/* Container for content sections */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section titles */
.page-gdpr__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main, #FFF5E1);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section intro paragraphs */
.page-gdpr__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main, #FFF5E1);
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as per rules */
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  background: linear-gradient(180deg, #C91F17 0%, #E53935 100%);
  color: #FFF5E1;
  padding-bottom: 40px;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  padding: 20px;
  text-align: center;
  max-width: 900px;
  margin-top: 20px;
}

.page-gdpr__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main color */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-gdpr__description {
  font-size: 20px;
  color: #FFF5E1; /* Text Main color */
  opacity: 0.9;
}

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

.page-gdpr__dark-bg {
  background-color: var(--card-bg, #D32F2F); /* Card BG color as dark background */
  color: var(--text-main, #FFF5E1); /* Text Main color for contrast */
}

.page-gdpr__light-bg {
  background-color: #ffffff; /* Default light background */
  color: #333333; /* Dark text for contrast */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__section-intro {
  color: #333333;
  text-shadow: none;
}

.page-gdpr__grid-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-gdpr__grid-container--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--border-color, #F2B544);
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__rights-list,
.page-gdpr__protection-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-gdpr__rights-item,
.page-gdpr__protection-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--gold-color, #F4D34D);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__light-bg .page-gdpr__rights-item,
.page-gdpr__light-bg .page-gdpr__protection-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-gdpr__rights-item:hover,
.page-gdpr__protection-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__rights-title,
.page-gdpr__protection-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--gold-color, #F4D34D);
}

.page-gdpr__light-bg .page-gdpr__rights-title,
.page-gdpr__light-bg .page-gdpr__protection-title {
  color: #C91F17; /* Main brand color on light background */
}

.page-gdpr__rights-text,
.page-gdpr__protection-text {
  font-size: 16px;
  color: var(--text-main, #FFF5E1);
}

.page-gdpr__light-bg .page-gdpr__rights-text,
.page-gdpr__light-bg .page-gdpr__protection-text {
  color: #333333;
}

/* Contact Section */
.page-gdpr__contact-section {
  padding: 80px 0;
  background-color: var(--deep-red, #7A0E0E); /* Deep Red color */
  text-align: center;
  color: var(--text-main, #FFF5E1);
}

.page-gdpr__contact-section .page-gdpr__section-title,
.page-gdpr__contact-section .page-gdpr__section-intro {
  color: var(--text-main, #FFF5E1);
}

.page-gdpr__button-wrapper {
  margin-top: 40px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text on light button */
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Styles --- */

/* @media (max-width: 1024px) - For larger tablets and smaller desktops */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 40px;
  }

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

  .page-gdpr__grid-container {
    flex-direction: column;
    align-items: center;
  }

  .page-gdpr__grid-container--reverse {
    flex-direction: column; /* Still column for consistency */
  }

  .page-gdpr__image-wrapper {
    width: 80%;
    margin-bottom: 30px;
  }

  .page-gdpr__rights-list,
  .page-gdpr__protection-list {
    width: 100%;
  }
}

/* @media (max-width: 768px) - Mobile styles */
@media (max-width: 768px) {
  /* General page content padding */
  .page-gdpr__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
    padding-bottom: 30px;
  }

  .page-gdpr__hero-image-wrapper {
    max-height: 300px;
  }

  .page-gdpr__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__hero-content {
    padding: 15px;
    margin-top: 15px;
  }

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

  .page-gdpr__description {
    font-size: 16px;
  }

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

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

  .page-gdpr__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-gdpr__grid-container {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-gdpr__grid-container--reverse {
    flex-direction: column; /* Consistent column layout on mobile */
  }

  .page-gdpr__image-wrapper {
    width: 100%; /* Full width on mobile */
    margin-bottom: 20px;
  }

  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__rights-item,
  .page-gdpr__protection-item {
    padding: 15px;
    margin-bottom: 10px;
  }

  .page-gdpr__rights-title,
  .page-gdpr__protection-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .page-gdpr__rights-text,
  .page-gdpr__protection-text {
    font-size: 14px;
  }

  /* Contact Section */
  .page-gdpr__contact-section {
    padding: 50px 0;
  }

  .page-gdpr__button-wrapper {
    margin-top: 30px;
  }

  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Full width button on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Ensure all images and their containers are responsive on mobile */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-gdpr__section,
.page-gdpr__card,
.page-gdpr__container,
.page-gdpr__button-wrapper { /* Add button wrapper to general container rules */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__button-wrapper { /* Apply to button wrapper too */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}