/* style/gdpr.css */

/* Define CSS variables for colors */
:root {
  --main-color: #E53935; /* typhu88 red */
  --accent-color: #FF5A4F; /* typhu88 orange */
  --card-bg: #FFFFFF;
  --bg-color-page: #F5F7FA; /* Light grey for content background */
  --text-main: #333333;
  --border-color: #E0E0E0;
  --text-light: #ffffff; /* For dark backgrounds */
}

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light backgrounds */
  background-color: var(--bg-color-page); /* Page specific background */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Stacks image then content */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--main-color) 100%);
  color: var(--text-light);
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light); /* Ensure high contrast on dark gradient */
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--main-color) 100%);
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  background: var(--main-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-secondary {
  background: var(--card-bg);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  margin-left: 15px; /* For multiple buttons */
}

.page-gdpr__btn-secondary:hover {
  background: var(--main-color);
  color: var(--text-light);
  border-color: var(--main-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--main-color); /* Default for light backgrounds */
}

.page-gdpr__section-title--light {
  color: var(--text-light); /* For dark backgrounds */
}

.page-gdpr__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-gdpr__grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-gdpr__text-block--light p {
  color: var(--text-light);
}

.page-gdpr__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__rights-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-gdpr__rights-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-gdpr__rights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-weight: bold;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-gdpr__grid {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }
  .page-gdpr__grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-gdpr__grid .page-gdpr__image-block {
    order: -1; /* Image appears first on mobile for reverse grid */
  }
  .page-gdpr__hero-section {
    padding: 40px 15px;
  }
  .page-gdpr__content-section {
    padding: 60px 15px;
  }
  .page-gdpr__main-title {
    font-size: clamp(2em, 6vw, 2.8em);
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__btn-secondary {
    margin-left: 0; /* Remove left margin for stacked buttons */
  }
}

@media (max-width: 768px) {
  /* Mobile specific overrides */
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Images and their containers */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__image-block,
  .page-gdpr__container,
  .page-gdpr__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to buttons themselves */
    padding-right: 15px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Hero section top padding */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Body already has header offset */
  }
}