/* style/gdpr.css */

/* Variables from custom colors */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --main-bg: #0A0A0A; /* This should be handled by shared.css body, but using it for sections if needed */
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-gdpr {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Light text for dark background */
  line-height: 1.6;
  padding-bottom: 50px; /* General padding for bottom */
}

/* 1. Top section (hero) */
.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: var(--main-bg); /* Use main-bg for hero section background */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-gdpr__hero-content {
  text-align: center;
  padding-bottom: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Use clamp for H1 font size */
  font-weight: bold;
  color: var(--secondary-color); /* Use secondary color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow for text */
}

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-gdpr__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--secondary-color); /* Secondary color text for secondary button */
  border: 2px solid var(--secondary-color);
}

.page-gdpr__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--main-bg); /* Dark background for hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* 2. Single column long text container */
.page-gdpr__content-section {
  padding: 50px 0;
  background-color: var(--card-bg); /* Use card-bg for content section */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-gdpr__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
}

.page-gdpr__sub-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__text {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: var(--text-main);
}

/* 3. General images and figure */
.page-gdpr__figure {
  margin: 30px 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent background for image container */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-gdpr__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.page-gdpr__figcaption {
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.7); /* Lighter text for caption */
  padding: 10px 15px;
  text-align: center;
}

/* 5. Contact info (general content block) */
.page-gdpr__contact-info {
  background-color: var(--main-bg);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
}

.page-gdpr__contact-info a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-gdpr__contact-info a:hover {
  color: var(--primary-color);
}

/* Links within content */
.page-gdpr__text a,
.page-gdpr__list-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-gdpr__text a:hover,
.page-gdpr__list-item a:hover {
  color: var(--primary-color);
}

/* Ensure content area images are not smaller than 200px (desktop) */
.page-gdpr__content-section img {
  min-width: 200px; /* Enforce min size for content images on desktop */
  min-height: 200px;
}

/* General image responsiveness for all images within the page-gdpr scope */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure containers of images also adapt for mobile */
.page-gdpr__hero-image-wrapper,
.page-gdpr__figure {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  /* 1. Top section, title, and CTA */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
  }

  .page-gdpr__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  /* 4. Buttons and button containers */
  .page-gdpr__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column long text container */
  .page-gdpr__article-wrap {
    padding: 0 15px !important; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-gdpr__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__text {
    font-size: 0.95em;
    margin-bottom: 10px;
  }

  /* 3. General images and figure */
  .page-gdpr__figure {
    margin: 20px 0;
  }

  .page-gdpr__figure img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-gdpr__figcaption {
    font-size: 0.8em;
    padding: 8px 10px;
  }

  /* 5. Registration tutorial and FAQ blocks (general content blocks like contact-info) */
  .page-gdpr__contact-info {
    padding: 20px;
    margin-top: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}