/* style/cookies-policy.css */

:root {
    --primary-color: #007BFF;
    --secondary-color: #FFD700;
    --dark-bg-1: #0d0d0d; /* From shared.css, implies dark background */
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --light-gray-bg: #f8f9fa;
    --medium-gray-border: #e0e0e0;
}

/* Ensure page content is below fixed header */
.page-cookies-policy {
    padding-top: 120px; /* Desktop: Adjust based on actual header height */
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--dark-bg-1);
}

.page-cookies-policy__hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-on-dark);
}

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

.page-cookies-policy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-on-dark);
}

.page-cookies-policy__highlight {
    color: var(--secondary-color);
}

.page-cookies-policy__intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-on-dark);
}

.page-cookies-policy__intro-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cookies-policy__intro-text a:hover {
    color: #ffc107;
}

.page-cookies-policy__section {
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cookies-policy__section:last-of-type {
    border-bottom: none;
}

.page-cookies-policy__dark-bg-section {
    background-color: var(--dark-bg-1);
    color: var(--text-on-dark);
}

.page-cookies-policy__light-bg-section {
    background-color: var(--light-gray-bg);
    color: var(--text-on-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-cookies-policy__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-cookies-policy__paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: inherit;
}

.page-cookies-policy__paragraph a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-cookies-policy__paragraph a:hover {
    color: #0056b3;
}

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

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

.page-cookies-policy__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cookies-policy__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cookies-policy__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-cookies-policy__card-text {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-on-light);
}

.page-cookies-policy__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-cookies-policy__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-on-light);
}

.page-cookies-policy__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.page-cookies-policy__list-item a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-cookies-policy__list-item a:hover {
    color: #0056b3;
}

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

.page-cookies-policy__contact-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-on-dark);
}

.page-cookies-policy__contact-item a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-cookies-policy__contact-item a:hover {
    color: #ffc107;
}

.page-cookies-policy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.page-cookies-policy__cta-button:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* FAQ Section Styles */
.page-cookies-policy__faq-section {
    padding: 60px 20px;
    background-color: var(--dark-bg-1);
}

.page-cookies-policy__faq-list {
    margin-top: 40px;
}

.page-cookies-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cookies-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-on-light);
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer p a {
    color: var(--primary-color);
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-on-light);
}

.page-cookies-policy__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cookies-policy__faq-question:active {
  background: #eeeeee;
}

.page-cookies-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-cookies-policy__faq-question h3 a {
    color: var(--primary-color);
}

.page-cookies-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change '+' to 'x' on active */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cookies-policy__main-title {
        font-size: 2.8em;
    }
    .page-cookies-policy__section-title {
        font-size: 2.2em;
    }
    .page-cookies-policy__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cookies-policy {
        padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    }
    .page-cookies-policy__hero-banner {
        padding: 40px 15px;
    }
    .page-cookies-policy__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cookies-policy__main-title {
        font-size: 2.2em;
    }
    .page-cookies-policy__intro-text {
        font-size: 1em;
    }
    .page-cookies-policy__section {
        padding: 40px 15px;
    }
    .page-cookies-policy__section-title {
        font-size: 1.8em;
    }
    .page-cookies-policy__sub-title {
        font-size: 1.5em;
    }
    .page-cookies-policy__paragraph {
        font-size: 0.95em;
    }
    .page-cookies-policy__grid {
        grid-template-columns: 1fr;
    }
    .page-cookies-policy__card {
        padding: 20px;
    }
    .page-cookies-policy__card-title {
        font-size: 1.3em;
    }
    .page-cookies-policy__list-item {
        font-size: 0.85em;
    }
    .page-cookies-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-cookies-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cookies-policy__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cookies-policy__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 15px;
    }
    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px !important;
    }
    /* Ensure all images are responsive */
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cookies-policy__what-are-cookies .page-cookies-policy__container,
    .page-cookies-policy__how-we-use-cookies .page-cookies-policy__container,
    .page-cookies-policy__third-party-cookies .page-cookies-policy__container,
    .page-cookies-policy__manage-preferences .page-cookies-policy__container,
    .page-cookies-policy__changes-contact .page-cookies-policy__container,
    .page-cookies-policy__faq-section .page-cookies-policy__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-cookies-policy__main-title {
        font-size: 1.8em;
    }
    .page-cookies-policy__section-title {
        font-size: 1.5em;
    }
    .page-cookies-policy__cta-button {
        width: 100%;
        box-sizing: border-box;
    }
}