:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #B22222; /* Deep Red */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F8F8F8;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
}

.page-cookies-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-cookies-policy__hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-cookies-policy__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotateGradient 20s linear infinite;
    z-index: 1;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-cookies-policy__hero .page-cookies-policy__container {
    position: relative;
    z-index: 2;
}

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

.page-cookies-policy__intro {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-cookies-policy__hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cookies-policy__section {
    padding: 40px 0;
}

.page-cookies-policy__section--alt {
    background-color: #f0f0f0; /* Slightly lighter than bg-light for distinction */
}

.page-cookies-policy__section-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.page-cookies-policy__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cookies-policy__link-inline {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-cookies-policy__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cookies-policy__card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cookies-policy__card-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

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

.page-cookies-policy__card-text {
    font-size: 0.95em;
    color: var(--text-dark);
    text-align: justify;
}

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

.page-cookies-policy__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-cookies-policy__image-full {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cookies-policy__image-centered {
    display: block;
    margin: 30px auto;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ styles */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-dark);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #fefefe;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

.page-cookies-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__cta-button:hover {
    background-color: #8C1A1A; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cookies-policy__title {
        font-size: 2em;
    }

    .page-cookies-policy__intro,
    .page-cookies-policy__text {
        font-size: 1em;
    }

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

    .page-cookies-policy__grid {
        grid-template-columns: 1fr;
    }

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

    .page-cookies-policy__card-icon {
        width: 80px;
        height: 80px;
    }

    .page-cookies-policy__list {
        padding-left: 10px;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question h3 {
        font-size: 1em;
    }

    .faq-toggle {
        font-size: 20px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-item.active .faq-answer {
        padding: 12px 15px;
    }

    .page-cookies-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-cookies-policy__title {
        font-size: 1.6em;
    }

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

    .page-cookies-policy__hero {
        padding: 40px 15px;
    }
}