/* style/gdpr.css */

/* Variables from color scheme */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-color: #0D0E12;
  --card-bg-color: #17191F;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text on dark body background */
  background-color: var(--background-color); /* Ensure background matches body */
  min-height: 100vh;
}

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

/* Sections */
.page-gdpr__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(168, 79, 12, 0.3); /* Border color with transparency */
}

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

.page-gdpr__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-gdpr__light-bg {
  background-color: var(--card-bg-color); /* Using card bg for contrast sections */
  color: var(--text-main-color);
}

/* Headings */
.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed huge size */
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-gdpr__list-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Paragraphs */
.page-gdpr__paragraph {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-main-color);
}

/* Links */
.page-gdpr a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-gdpr__list-item {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-gdpr__list-item::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* 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;
  /* Rely on body padding-top for header offset */
  padding-top: 10px; /* Small top padding for visual spacing */
  background-color: var(--background-color);
}

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

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

.page-gdpr__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-gdpr__intro-text {
  font-size: 1.2rem;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Image wrappers */
.page-gdpr__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-gdpr__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-gdpr__image-wrapper--right {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 400px;
}

/* Contact List specific styling */
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-gdpr__contact-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__contact-item .page-gdpr__list-title {
  color: var(--primary-color);
  margin-top: 0;
}

.page-gdpr__contact-item p {
  color: var(--text-main-color);
}

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

details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: rgba(var(--primary-color), 0.1); /* Lighter hover for dark background */
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--primary-color), 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-main-color);
}
details.page-gdpr__faq-item .page-gdpr__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__image-wrapper--right {
    float: none;
    margin: 30px auto;
  }
}

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

  .page-gdpr__container {
    padding: 20px 15px;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__main-title {
    font-size: 2rem;
  }

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

  .page-gdpr__list-title {
    font-size: 1.2rem;
  }

  .page-gdpr__paragraph, .page-gdpr__intro-text {
    font-size: 1rem;
  }

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

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

  .page-gdpr__contact-list {
    grid-template-columns: 1fr;
  }
  
  details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px; }
  .page-gdpr__faq-qtext { font-size: 1.1rem; }
  details.page-gdpr__faq-item .page-gdpr__faq-answer { padding: 0 15px 15px; }
}

/* Ensure all images are responsive and not smaller than 200px (content area) */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific content area image rules for min-size */
.page-gdpr__content-section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Container for images to prevent overflow */
.page-gdpr__image-wrapper,
.page-gdpr__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile specific overrides for image containers */
@media (max-width: 768px) {
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__image-wrapper,
  .page-gdpr__hero-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}