/* style/cookies-policy.css */

/* Variables from shared.css or defined here for consistency */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-color-login: #EA7C07; /* From custom color rules */
  --black: #000000;
  --light-gray: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Main page container */
.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background if shared.css sets body to --secondary-color */
  padding-bottom: 60px; /* Space before footer */
}

/* Fixed header offset - applied to the first main content section */
.page-cookies-policy__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, overridden by media query if needed */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding-bottom: 60px;
  text-align: center;
  color: var(--text-light); /* White text on gradient background */
}

.page-cookies-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cookies-policy__main-heading {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light); /* Ensure high contrast */
  line-height: 1.2;
}

.page-cookies-policy__intro-paragraph {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-light); /* Ensure high contrast */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Background colors for alternating sections */
.page-cookies-policy__light-bg {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text */
}

.page-cookies-policy__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light); /* White text */
}

.page-cookies-policy__section-heading {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherits color from parent section (dark or light) */
}

.page-cookies-policy__sub-heading {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: inherit; /* Inherits color from parent section */
}

.page-cookies-policy__paragraph {
  margin-bottom: 20px;
  font-size: 1em;
  color: inherit; /* Inherits color from parent section */
}

.page-cookies-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: inherit; /* Inherits color from parent section */
}

.page-cookies-policy__list-item {
  margin-bottom: 10px;
  color: inherit; /* Inherits color from parent section */
}

.page-cookies-policy__link {
  color: var(--primary-color); /* Brand color for links */
  text-decoration: underline;
}

.page-cookies-policy__link:hover {
  color: var(--black);
}

/* Image styling */
.page-cookies-policy__image-wrapper {
  margin: 40px 0;
  text-align: center;
}

.page-cookies-policy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* No filter property to change color */
}

/* CTA Buttons */
.page-cookies-policy__cta-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cookies-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-cookies-policy__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light); /* White text on primary background */
  border: 2px solid var(--primary-color);
}

.page-cookies-policy__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker shade of #26A9E0 */
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-cookies-policy__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Primary color text on white background */
  border: 2px solid var(--primary-color);
}

.page-cookies-policy__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-cookies-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
  }

  .page-cookies-policy__main-heading {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-cookies-policy__intro-paragraph {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-cookies-policy__container {
    padding: 0 15px;
  }

  .page-cookies-policy__section-heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cookies-policy__sub-heading {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .page-cookies-policy__paragraph,
  .page-cookies-policy__list-item {
    font-size: 0.95em;
  }

  .page-cookies-policy__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cookies-policy__cta-container {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    margin-top: 30px;
  }

  .page-cookies-policy__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}