/* style/cookies-policy.css */

/* Base styles for the page content, ensuring contrast with the shared body background */
/* Assuming --background-color from shared.css is dark, so text is light. */
.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Text Main */
  background-color: var(--background, #08160F); /* Background */
}

/* Hero Section */
.page-cookies-policy__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image then text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and text */
  border-radius: 8px;
}

.page-cookies-policy__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%; /* Ensure content block takes full width up to max-width */
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cookies-policy__main-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Responsive font size for H1, prevent too large */
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6); /* Text Main */
  margin-bottom: 15px;
}

.page-cookies-policy__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8); /* Text Secondary */
  margin-bottom: 30px;
}

/* Content Area */
.page-cookies-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--background, #08160F); /* Consistent with body for main content blocks */
  color: var(--text-main, #F2FFF6);
}

.page-cookies-policy__dark-section {
  background-color: var(--card-bg, #11271B); /* Card BG */
  color: var(--text-main, #F2FFF6); /* Text Main */
  border-bottom: 1px solid var(--divider, #1E3A2A); /* Divider */
}

.page-cookies-policy__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6); /* Text Main */
  margin-bottom: 30px;
  text-align: center;
}

.page-cookies-policy__text-block {
  max-width: 900px;
  margin: 0 auto;
}

.page-cookies-policy__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--gold, #F2C14E); /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cookies-policy p {
  margin-bottom: 1em;
  color: var(--text-main, #F2FFF6); /* Text Main */
}

.page-cookies-policy__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-cookies-policy__link {
  color: var(--glow, #57E38D); /* Glow */
  text-decoration: underline;
}

.page-cookies-policy__link:hover {
  color: var(--deep-green, #0A4B2C); /* Deep Green */
}

/* FAQ Section */
.page-cookies-policy__faq-section {
  padding: 40px 20px;
  background-color: var(--card-bg, #11271B); /* Card BG */
  color: var(--text-main, #F2FFF6); /* Text Main */
  border-bottom: 1px solid var(--divider, #1E3A2A); /* Divider */
}

.page-cookies-policy__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cookies-policy__faq-item {
  background-color: var(--background, #08160F); /* Background */
  border: 1px solid var(--border, #2E7A4E); /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6); /* Text Main */
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cookies-policy__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-cookies-policy__faq-question:hover {
  background-color: var(--primary-color, #11A84E); /* Primary Color */
}

.page-cookies-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: var(--glow, #57E38D); /* Glow */
}

.page-cookies-policy__faq-answer {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8); /* Text Secondary */
  /* For details/summary, height is handled by browser */
}

.page-cookies-policy__faq-answer p {
  margin-bottom: 0; /* Remove extra margin for paragraphs inside answer */
}

/* Ensure no default marker in Firefox */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.page-cookies-policy__cta-section {
  padding: 60px 20px;
  text-align: center;
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%)); /* Button Gradient */
  color: #ffffff; /* White text for contrast */
  box-sizing: border-box;
}

.page-cookies-policy__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-cookies-policy__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-cookies-policy__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons fit */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-cookies-policy__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cookies-policy__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slightly altered gradient on hover */
}

.page-cookies-policy__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6); /* Text Main */
  border: 2px solid var(--text-main, #F2FFF6); /* Text Main for border */
}

.page-cookies-policy__btn-secondary:hover {
  background: var(--text-main, #F2FFF6); /* Text Main */
  color: var(--background, #08160F); /* Background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cookies-policy__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }

  .page-cookies-policy__section-title {
    font-size: 1.8em;
  }

  .page-cookies-policy__sub-title {
    font-size: 1.4em;
  }

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

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

  /* Universal image responsiveness */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content containers for padding and overflow */
  .page-cookies-policy__hero-section,
  .page-cookies-policy__content-area,
  .page-cookies-policy__faq-section,
  .page-cookies-policy__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cookies-policy__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  /* Button responsiveness */
  .page-cookies-policy__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Adjust padding for button group */
  }

  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-cookies-policy__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-cookies-policy__section-title {
    font-size: 1.6em;
  }

  .page-cookies-policy__sub-title {
    font-size: 1.2em;
  }

  .page-cookies-policy__cta-title {
    font-size: 1.8em;
  }
}