/* Base styles for the cookie policy page */
.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #F5F7FA; /* Custom background color */
}

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

.page-cookies-policy__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935; /* Brand main color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}
.page-cookies-policy__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FF5A4F; /* Brand auxiliary color */
  border-radius: 2px;
}

.page-cookies-policy__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cookies-policy__paragraph {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}

.page-cookies-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-cookies-policy__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}
.page-cookies-policy__list-item strong {
  color: #E53935;
}

/* Hero Section */
.page-cookies-policy__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand gradient */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cookies-policy__hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtle overlay */
  filter: none; /* No color filter */
}

.page-cookies-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px 15px;
}

.page-cookies-policy__main-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White text for dark background */
}

.page-cookies-policy__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%; /* Button responsive rule */
  box-sizing: border-box; /* Button responsive rule */
  white-space: normal; /* Button responsive rule */
  word-wrap: break-word; /* Button responsive rule */
}

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

.page-cookies-policy__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-cookies-policy__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-cookies-policy__btn-secondary:hover {
  background: #f0f0f0;
  color: #c62828;
  border-color: #c62828;
  transform: translateY(-2px);
}

/* Section specific styles */
.page-cookies-policy__introduction,
.page-cookies-policy__purposes,
.page-cookies-policy__third-party-sharing,
.page-cookies-policy__contact {
  padding: 60px 0;
}

.page-cookies-policy__types-of-cookies,
.page-cookies-policy__management,
.page-cookies-policy__changes,
.page-cookies-policy__faq-section {
  padding: 60px 0;
  background-color: #2c2c2c; /* Dark background for contrast */
  color: #f0f0f0; /* Light text for dark background */
}
.page-cookies-policy__types-of-cookies .page-cookies-policy__section-title,
.page-cookies-policy__management .page-cookies-policy__section-title,
.page-cookies-policy__changes .page-cookies-policy__section-title,
.page-cookies-policy__faq-section .page-cookies-policy__section-title {
  color: #ffffff;
}
.page-cookies-policy__types-of-cookies .page-cookies-policy__section-title::after,
.page-cookies-policy__management .page-cookies-policy__section-title::after,
.page-cookies-policy__changes .page-cookies-policy__section-title::after,
.page-cookies-policy__faq-section .page-cookies-policy__section-title::after {
  background-color: #FF5A4F;
}
.page-cookies-policy__types-of-cookies .page-cookies-policy__paragraph,
.page-cookies-policy__management .page-cookies-policy__paragraph,
.page-cookies-policy__changes .page-cookies-policy__paragraph,
.page-cookies-policy__faq-section .page-cookies-policy__paragraph {
  color: #e0e0e0;
}
.page-cookies-policy__management .page-cookies-policy__sub-title {
  color: #FF5A4F;
}
.page-cookies-policy__management .page-cookies-policy__list-item strong {
  color: #FF5A4F;
}


/* Card Grid */
.page-cookies-policy__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cookies-policy__card {
  background: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for white background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E0E0E0; /* Border color */
}

.page-cookies-policy__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-cookies-policy__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No color filter */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-cookies-policy__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-cookies-policy__card-text {
  font-size: 15px;
  line-height: 1.6;
}

/* Content Grid for Management Section */
.page-cookies-policy__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.page-cookies-policy__content-grid:last-of-type {
  margin-bottom: 0;
}

.page-cookies-policy__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cookies-policy__text-block,
.page-cookies-policy__image-block {
  flex: 1;
}

.page-cookies-policy__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* No color filter */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-cookies-policy__faq-list {
  margin-top: 40px;
}

details.page-cookies-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #3a3a3a; /* Dark background for FAQ items */
  color: #f0f0f0; /* Light text for FAQ items */
}
details.page-cookies-policy__faq-item summary.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff; /* White text for question */
}
details.page-cookies-policy__faq-item summary.page-cookies-policy__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cookies-policy__faq-item summary.page-cookies-policy__faq-question:hover {
  background: #4a4a4a; /* Slightly lighter dark on hover */
}
.page-cookies-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-cookies-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF5A4F; /* Auxiliary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cookies-policy__faq-item .page-cookies-policy__faq-answer {
  padding: 0 20px 20px;
  background: #4a4a4a; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #e0e0e0; /* Lighter text for answer */
}
.page-cookies-policy__faq-answer p {
  margin-bottom: 0;
}


/* Responsive styles */
/* Mandatory 1023px for game trial reset (not applicable to this page, but must be included if it were homepage) */
@media (max-width: 1023px) {
  .page-cookies-policy__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__hero-brand,
  .page-cookies-policy__hero-jackpot {
    display: none !important;
  }
  .page-cookies-policy__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial-topbar,
  .page-cookies-policy__game-trial-bottombar {
    display: none !important;
  }
  .page-cookies-policy__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-cookies-policy__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cookies-policy__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* Mandatory 1024px for PC three-column layout (not applicable to this page, but must be included if it were homepage) */
@media (min-width: 1024px) {
  .page-cookies-policy__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-cookies-policy__hero-brand,
  .page-cookies-policy__hero-jackpot,
  .page-cookies-policy__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cookies-policy__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cookies-policy__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cookies-policy__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Placeholder for other homepage specific modules for PC */
  .page-cookies-policy__promo-strip-track { /* Example for homepage promo strip */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-cookies-policy__hot-games-grid { /* Example for homepage hot games */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}