/* style/cookies-policy.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --accent-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --bg-light-card: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
}

.page-cookies-policy {
    color: var(--text-light); /* Trang nền tối, chữ sáng */
    background-color: var(--bg-dark); /* Kế thừa từ body, đảm bảo nền tối */
    padding-top: 120px; /* Đảm bảo nội dung không bị header cố định che khuất */
}

.page-cookies-policy__hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding-top: 180px; /* Đảm bảo nội dung không bị header cố định che khuất */
}

.page-cookies-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-cookies-policy__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cookies-policy__main-title .highlight {
    color: var(--accent-color);
}

.page-cookies-policy__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    opacity: 0.9;
}

.page-cookies-policy__content-area {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-cookies-policy__container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-light-card);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-cookies-policy__article-content h2 {
    font-size: 2.2em;
    color: var(--accent-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-cookies-policy__article-content h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cookies-policy__article-content p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.page-cookies-policy__article-content p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cookies-policy__article-content p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-cookies-policy__article-content strong {
    color: var(--accent-color);
}

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

.page-cookies-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-light-card);
  border: 1px solid var(--border-color);
}

.page-cookies-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cookies-policy__faq-question:hover {
  background: rgba(0, 0, 0, 0.4);
}

.page-cookies-policy__faq-question:active {
  background: rgba(0, 0, 0, 0.6);
}

.page-cookies-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-cookies-policy__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-toggle {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: rotate(45deg); /* Change + to X visually */
}

.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 25px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.8);
}

.page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 8px 8px;
}

/* Call to Action Section */
.page-cookies-policy__call-to-action {
    background: linear-gradient(90deg, #0056b3, var(--primary-color));
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
    margin-top: 60px;
}

.page-cookies-policy__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.page-cookies-policy__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cookies-policy__cta-button:hover {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.page-cookies-policy__cta-button--secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cookies-policy__main-title {
        font-size: 2.8em;
    }
    .page-cookies-policy__hero-description {
        font-size: 1.1em;
    }
    .page-cookies-policy__article-content h2 {
        font-size: 1.8em;
    }
    .page-cookies-policy__article-content h3 {
        font-size: 1.4em;
    }
    .page-cookies-policy__article-content p {
        font-size: 1em;
    }
    .page-cookies-policy__container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-cookies-policy {
        padding-top: 100px !important; /* Mobile fixed header padding */
        font-size: 16px; /* Enhanced readability */
        line-height: 1.6;
    }
    .page-cookies-policy__hero-banner {
        padding: 60px 15px;
        padding-top: 160px !important; /* Mobile fixed header padding */
    }
    .page-cookies-policy__main-title {
        font-size: 2.2em;
    }
    .page-cookies-policy__hero-description {
        font-size: 1em;
    }
    .page-cookies-policy__content-area {
        padding: 30px 15px;
    }
    .page-cookies-policy__container {
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cookies-policy__article-content h2 {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-cookies-policy__article-content h3 {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-cookies-policy__article-content p {
        font-size: 0.95em;
    }
    .page-cookies-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cookies-policy__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .page-cookies-policy__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-cookies-policy__faq-answer {
        padding: 0 15px;
    }
    .page-cookies-policy__faq-item.active .page-cookies-policy__faq-answer {
        padding: 15px !important;
    }
    .page-cookies-policy__cta-title {
        font-size: 1.8em;
    }
    .page-cookies-policy__cta-description {
        font-size: 1em;
    }
    .page-cookies-policy__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 8px;
    }
}

/* Ensure all images are responsive and do not overflow */
.page-cookies-policy img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-cookies-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cookies-policy__hero-banner,
    .page-cookies-policy__content-area,
    .page-cookies-policy__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cookies-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}