/* style/cookies-policy.css */

:root {
  --phdream-primary: #F2C14E;
  --phdream-secondary: #FFD36B;
  --phdream-card-bg: #111111;
  --phdream-background: #0A0A0A;
  --phdream-text-main: #FFF6D6;
  --phdream-border: #3A2A12;
  --phdream-glow: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--phdream-text-main); /* Light text for dark body background */
  background-color: var(--phdream-background); /* Body background */
}

.page-cookies-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--phdream-background);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cookies-policy__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.page-cookies-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for text contrast */
}

.page-cookies-policy__hero-content-wrapper {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  z-index: 1;
  margin-top: -150px; /* Pull content up over the image */
  background: rgba(17, 17, 17, 0.85); /* Semi-transparent dark background */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--phdream-border);
}

.page-cookies-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--phdream-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-cookies-policy__hero-description {
  font-size: 1.1em;
  color: var(--phdream-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cookies-policy__section-title {
  font-size: 2.5em;
  color: var(--phdream-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-cookies-policy__paragraph {
  margin-bottom: 20px;
  color: var(--phdream-text-main);
  font-size: 1.05em;
  line-height: 1.7;
}

.page-cookies-policy__card {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__card-title {
  font-size: 1.8em;
  color: var(--phdream-secondary);
  margin-bottom: 15px;
}

.page-cookies-policy__card-text {
  color: var(--phdream-text-main);
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-cookies-policy__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

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

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cookies-policy__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-cookies-policy__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-cookies-policy__btn-secondary {
  background-color: transparent;
  color: var(--phdream-primary);
  border: 2px solid var(--phdream-primary);
  margin-top: 20px;
}

.page-cookies-policy__btn-secondary:hover {
  background-color: var(--phdream-primary);
  color: var(--phdream-background);
  transform: translateY(-3px);
}

.page-cookies-policy__btn-text-link {
  color: var(--phdream-primary);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 15px;
}

.page-cookies-policy__btn-text-link:hover {
  color: var(--phdream-secondary);
}

.page-cookies-policy__link {
  color: var(--phdream-primary);
  text-decoration: underline;
}

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

/* FAQ Section */
.page-cookies-policy__faq-section {
  background-color: var(--phdream-background);
}

.page-cookies-policy__faq-item {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--phdream-card-bg);
  color: var(--phdream-text-main);
  font-size: 1.2em;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-cookies-policy__faq-question:hover {
  background-color: rgba(var(--phdream-primary), 0.1);
}

.page-cookies-policy__faq-heading {
  margin: 0;
  color: var(--phdream-text-main);
}

.page-cookies-policy__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--phdream-primary);
  transition: transform 0.3s ease;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
  transform: rotate(45deg);
}

.page-cookies-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--phdream-text-main);
  text-align: left;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-cookies-policy__hero-section {
    padding-bottom: 30px;
  }

  .page-cookies-policy__hero-content-wrapper {
    margin-top: -80px;
    padding: 30px 15px;
  }

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

  .page-cookies-policy__hero-description {
    font-size: 1em;
  }

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

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

  .page-cookies-policy__card {
    flex-direction: column;
    padding: 20px;
  }

  .page-cookies-policy__card-title {
    font-size: 1.5em;
  }

  .page-cookies-policy__card-text {
    font-size: 0.95em;
  }

  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cookies-policy__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-cookies-policy__faq-answer {
    padding: 0 20px;
  }

  .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
    padding: 15px 20px 20px;
  }

  /* Mobile image adaptation */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cookies-policy__section,
  .page-cookies-policy__card,
  .page-cookies-policy__container,
  .page-cookies-policy__hero-section,
  .page-cookies-policy__types-section,
  .page-cookies-policy__third-party-section,
  .page-cookies-policy__management-section,
  .page-cookies-policy__faq-section,
  .page-cookies-policy__updates-section,
  .page-cookies-policy__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cookies-policy__hero-content-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}