/* style/cookies-policy.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

.page-cookies-policy__hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-color-light);
}

.page-cookies-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-cookies-policy__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__subtitle {
    font-size: 1.3em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.page-cookies-policy__link {
    color: var(--text-color-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

.page-cookies-policy__section {
    padding: 60px 0;
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
}

.page-cookies-policy__section--alt-bg {
    background-color: var(--background-light);
}

.page-cookies-policy__heading {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-cookies-policy__heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-cookies-policy__sub-heading {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cookies-policy__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-cookies-policy__text-content {
    flex: 1;
    line-height: 1.8;
    font-size: 1.1em;
}

.page-cookies-policy__text-content p {
    margin-bottom: 15px;
}

.page-cookies-policy__text-content .page-cookies-policy__link {
    color: var(--secondary-color);
}

.page-cookies-policy__text-content .page-cookies-policy__link:hover {
    color: var(--primary-color);
}

.page-cookies-policy__image-box {
    flex: 0 0 400px; /* Fixed width for images on desktop */
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cookies-policy__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cookies-policy__list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-cookies-policy__list-item {
    margin-bottom: 20px;
    padding-left: 25px;
    position: relative;
}

.page-cookies-policy__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

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

.page-cookies-policy .faq-item {
  margin-bottom: 15px;
}

.page-cookies-policy .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-color-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-cookies-policy .faq-question:hover {
  background: var(--background-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-cookies-policy .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-color-dark);
  font-weight: 600;
}

.page-cookies-policy .faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-cookies-policy .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
}

.page-cookies-policy .faq-answer p {
    padding: 15px 0;
    margin: 0;
    line-height: 1.7;
}

.page-cookies-policy .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

.page-cookies-policy .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cookies-policy__title {
        font-size: 2.8em;
    }
    .page-cookies-policy__heading {
        font-size: 2em;
    }
    .page-cookies-policy__sub-heading {
        font-size: 1.5em;
    }
    .page-cookies-policy__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-cookies-policy__content-wrapper--reversed {
        flex-direction: column;
    }
    .page-cookies-policy__image-box {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin-top: 30px;
    }
    .page-cookies-policy__text-content {
        order: 2; /* Ensure text appears after image on small screens */
    }
    .page-cookies-policy__content-wrapper--reversed .page-cookies-policy__text-content {
        order: 1;
    }
    .page-cookies-policy__content-wrapper--reversed .page-cookies-policy__image-box {
        order: 2;
    }
    .page-cookies-policy__list-item {
        padding-left: 0;
    }
    .page-cookies-policy__list-item::before {
        position: static;
        margin-right: 10px;
    }
    .page-cookies-policy .faq-question {
        padding: 15px 20px;
    }
    .page-cookies-policy .faq-question h3 {
        font-size: 1.1em;
    }
    .page-cookies-policy .faq-toggle {
        font-size: 1.8em;
    }
    .page-cookies-policy .faq-answer {
        padding: 0 20px;
    }
    .page-cookies-policy .faq-item.active .faq-answer {
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .page-cookies-policy__hero {
        padding: 50px 15px;
    }
    .page-cookies-policy__title {
        font-size: 2.2em;
    }
    .page-cookies-policy__subtitle {
        font-size: 1em;
    }
    .page-cookies-policy__section {
        padding: 40px 0;
    }
    .page-cookies-policy__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cookies-policy__sub-heading {
        font-size: 1.3em;
    }
    .page-cookies-policy__text-content {
        font-size: 1em;
    }
    .page-cookies-policy__image-box {
        max-width: 100%;
        margin-top: 20px;
    }
    .page-cookies-policy .faq-question {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-cookies-policy .faq-question h3 {
        margin-bottom: 8px;
        text-align: left;
    }
    .page-cookies-policy .faq-toggle {
        align-self: flex-end;
        margin-top: -30px;
    }
}