/* style/gdpr.css */

/* Variables and Base Styles */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f0f0f0;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

/* Main Page Container - Ensure content starts below fixed header */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Dark body background #0a0a0a, so light text */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  min-height: 100vh;
}

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

/* Hero Section */
.page-gdpr__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000040 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--primary-color);
}

.page-gdpr__container--hero {
  padding-top: 0; /* Hero section itself has padding, no need for extra top padding here */
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  color: var(--text-light);
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-gdpr__highlight {
  color: var(--primary-color);
}

.page-gdpr__hero-cta {
  margin-top: 30px;
}

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

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

.page-gdpr__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-gdpr__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: -30px auto 50px auto;
  color: #ccc;
}

/* Grid for Principles */
.page-gdpr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Card Styles */
.page-gdpr__card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr__card p {
  font-size: 1em;
  color: #ccc;
  line-height: 1.7;
}

.page-gdpr__card-image {
  width: 100%;
  max-width: 250px; /* Adjust image size in card */
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* List Styles (for Rights) */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.page-gdpr__list-item {
  background: var(--card-bg-dark);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-gdpr__list-item:hover {
  transform: translateX(5px);
}

.page-gdpr__list-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-gdpr__list-item p {
  font-size: 0.95em;
  color: #ccc;
}

/* Content Blocks (for Implementation, Consent, Cookies) */
.page-gdpr__content-block {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-gdpr__content-block h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.page-gdpr__content-block p {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-gdpr__image-full {
  width: 100%;
  height: auto;
  max-height: 400px; /* Limit height for full width images */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Box */
.page-gdpr__cta-box {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--primary-color);
}

.page-gdpr__cta-box p {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* Contact Section */
.page-gdpr__container--contact {
  text-align: center;
}

.page-gdpr__contact-intro {
  font-size: 1.1em;
  color: #ccc;
  max-width: 800px;
  margin: -30px auto 40px auto;
}

.page-gdpr__contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-gdpr__contact-item {
  font-size: 1.1em;
  color: #e0e0e0;
  margin: 0;
  text-align: left;
}

.page-gdpr__contact-item strong {
  color: var(--primary-color);
}

.page-gdpr__contact-info {
  color: var(--text-light);
  word-break: break-all; /* Ensure long emails/addresses wrap */
}

.page-gdpr__contact-outro {
  font-size: 1.1em;
  color: #ccc;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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


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

.page-gdpr__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark text on gold button for contrast */
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-gdpr__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-gdpr__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-gdpr__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-gdpr__btn-primary--center {
  margin: 0 auto;
  display: block; /* Make it a block element to center with margin auto */
  max-width: 300px; /* Limit max width for centering */
}

/* Inline links */
.page-gdpr__link-inline {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.page-gdpr__link-inline:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-title {
    font-size: 2.8em;
  }

  .page-gdpr__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-gdpr {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile shared header height */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-gdpr__hero-section {
    padding: 60px 0;
  }

  .page-gdpr__hero-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-gdpr__section {
    padding: 40px 0;
  }

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

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

  .page-gdpr__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .page-gdpr__card-title {
    font-size: 1.3em;
  }

  .page-gdpr__list-item {
    padding: 20px;
    border-radius: 6px;
  }

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

  .page-gdpr__content-block {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-gdpr__content-block h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-gdpr__content-block p {
    font-size: 1em;
  }

  .page-gdpr__image-full {
    max-height: 250px;
    border-radius: 6px;
  }

  .page-gdpr__cta-box {
    padding: 30px;
    margin-top: 40px;
  }

  .page-gdpr__cta-box p {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  .page-gdpr__contact-details {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
  }

  .page-gdpr__contact-item {
    font-size: 1em;
  }

  .page-gdpr__contact-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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

  .page-gdpr__btn-primary--center {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Image responsive for mobile */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__container,
  .page-gdpr__card,
  .page-gdpr__content-block,
  .page-gdpr__cta-box,
  .page-gdpr__contact-details {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-gdpr__hero-section .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}