/* style/gdpr.css */

/* Variables for colors based on the provided palette */
:root {
  --primary-color: #11A84E; /* Main color */
  --secondary-color: #22C768; /* Auxiliary color */
  --background-dark: #08160F; /* Page background */
  --card-bg: #11271B; /* Card background */
  --text-main: #F2FFF6; /* Main text color */
  --text-secondary: #A7D9B8; /* Secondary text color */
  --border-color: #2E7A4E; /* Border color */
  --glow-color: #57E38D; /* Glow effect color */
  --gold-color: #F2C14E; /* Gold accent color */
  --divider-color: #1E3A2A; /* Divider color */
  --deep-green: #0A4B2C; /* Deep green */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
}

/* Global styles for the GDPR page content, assuming dark body background from shared.css */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Main text color for dark background */
  background-color: var(--background-dark); /* Explicitly set page background */
  line-height: 1.6;
  font-size: 16px;
}

/* Section styling */
.page-gdpr__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-gdpr__dark-section {
  background-color: var(--card-bg); /* Use card background for dark sections */
  color: var(--text-main);
}

/* Container for content width */
.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Add horizontal padding for smaller screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--background-dark);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 250px; /* Ensure minimum height */
}

.page-gdpr__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Titles */
.page-gdpr__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--primary-color); /* Use primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-gdpr__section-subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.page-gdpr__text-block {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__keyword {
  color: var(--primary-color);
  font-weight: bold;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding and border are included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-gdpr__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Data Types Grid */
.page-gdpr__data-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-gdpr__data-type-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-gdpr__data-type-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__data-type-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Data Protection Features */
.page-gdpr__protection-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-gdpr__protection-item {
  background-color: var(--background-dark); /* Slightly darker background for items within dark section */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--deep-green);
  text-align: center;
}

.page-gdpr__protection-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max width for smaller images */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
}

.page-gdpr__protection-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-gdpr__protection-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* User Rights List */
.page-gdpr__rights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__rights-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-gdpr__rights-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-gdpr__rights-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-gdpr__content-image {
  width: 100%;
  max-width: 800px; /* Example max-width for content images */
  height: auto;
  display: block;
  margin: 40px auto 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
}

/* Cookie Policy Types */
.page-gdpr__cookie-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-gdpr__cookie-type-item {
  background-color: var(--background-dark); /* Slightly darker background for items within dark section */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--deep-green);
}

.page-gdpr__cookie-type-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__cookie-type-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Info */
.page-gdpr__contact-info {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  margin: 30px auto;
  max-width: 600px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.page-gdpr__contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-gdpr__contact-info a:hover {
  text-decoration: underline;
}

/* Links within text blocks */
.page-gdpr__text-block a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-gdpr__text-block a:hover {
  text-decoration: underline;
}

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

.page-gdpr__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main); /* Ensure text is light on dark card background */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color); /* Question text in primary color */
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-gdpr__faq-question:hover {
  background-color: var(--deep-green); /* Slightly change background on hover */
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-color); /* Gold color for toggle icon */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross when open */
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary); /* Answer text in secondary color */
  text-align: justify;
}

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
}

.page-gdpr__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-gdpr__hero-content {
    padding: 30px 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .page-gdpr__hero-description {
    font-size: 1rem;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-gdpr__section-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .page-gdpr__commitment-grid,
  .page-gdpr__data-types,
  .page-gdpr__protection-features,
  .page-gdpr__rights-list,
  .page-gdpr__cookie-types {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__hero-image {
    min-height: 200px;
  }

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

  .page-gdpr__main-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-gdpr__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-gdpr__section-subtitle {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-gdpr__text-block {
    font-size: 0.9rem;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 15px;
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make buttons block level for full width */
  }
  
  .page-gdpr__cta-buttons,
  .page-gdpr__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__container,
  .page-gdpr__data-type-card,
  .page-gdpr__protection-item,
  .page-gdpr__rights-item,
  .page-gdpr__cookie-type-item,
  .page-gdpr__contact-info,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific padding for sections in mobile */
  .page-gdpr__section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-gdpr__section .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section {
    padding-top: 5px;
  }
  .page-gdpr__hero-image {
    min-height: 150px;
  }
  .page-gdpr__hero-content {
    padding: 15px 10px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.2rem, 8vw, 2rem);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }
}