/* ==============================================
   CENTRALIZED LEGAL PAGES STYLES - Kalis Safari
   (Privacy, Terms, FAQ - January 2026)
=============================================== */

/* Root variables already defined in main style.css — we reuse them */

/* === HERO (used on all legal pages) === */
.hero-privacy,
.hero-terms,
.hero-faq {
  min-height: 20vh;
  background: linear-gradient(135deg, var(--leopard-tan), var(--light-leopard-tan));
  position: relative;
  display: flex;
  align-items: center;
  color: var(--earth-brown);
  text-align: center;
  overflow: hidden;
  padding: 3rem 1rem 4rem;
}

.hero-privacy::before,
.hero-terms::before,
.hero-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/images/hero.jpg') center/cover;
  opacity: 0.07;
  z-index: 0;
}

.hero-privacy-content,
.hero-terms-content,
.hero-faq-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hero-privacy-content h1,
.hero-terms-content h1,
.hero-faq-content h1 {
  font-size: clamp(2.0rem, 6.0vw, 3.5rem);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--earth-brown);
}

.hero-privacy .legal-subtitle,
.hero-terms .legal-subtitle,
.hero-faq .legal-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  max-width: 798px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  margin-bottom: 10px;
  opacity: 0.95;
  line-height: 1.2;
}

.legal-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.legal-icon i {
  font-size: 1.7rem;
  color: white;
}

.legal-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item i {
  color: var(--yellow-ochre);
}

/* === MAIN CONTENT AREA === */
.legal-content {
  background: var(--bg);
  padding: 5rem 1rem 6rem;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.legal-intro {
  max-width: 860px;
  margin: 0 auto 4.5rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
}

/* === ACCORDION (used on Privacy & Terms) === */
.accordion-container {
  max-width: 980px;
  margin: 0 auto 5rem;
}

.accordion-item {
  background: white;
  border: 2px solid rgba(92, 58, 33, 0.12);
  border-radius: 14px;
  margin-bottom: 1.2rem;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 6px 24px rgba(92,58,33,0.06);
}

.accordion-item:hover {
  border-color: var(--giraffe-gold);
  box-shadow: 0 12px 36px rgba(216,140,63,0.14);
  transform: translateY(-3px);
}

.accordion-header {
  width: 100%;
  padding: 1.6rem 2.2rem;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--earth-brown);
  text-align: left;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: var(--light-leopard-tan);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.accordion-title i {
  font-size: 1.5rem;
  color: var(--yellow-ochre);
  min-width: 32px;
}

.accordion-icon {
  font-size: 1.4rem;
  color: var(--giraffe-gold);
  transition: transform 0.4s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
  padding: 0 2.2rem;
  color: var(--muted);
}

.accordion-item.active .accordion-content {
  max-height: 6000px;
  padding: 0 2.2rem 2.2rem;
}

.accordion-content p {
  margin: 1.2rem 0;
  line-height: 1.78;
}

.accordion-content h4 {
  color: var(--earth-brown);
  font-size: 1.15rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.accordion-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0;
}

.accordion-content ul li {
  padding-left: 2.1rem;
  position: relative;
  margin-bottom: 0.9rem;
  line-height: 1.65;
}

.accordion-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--giraffe-gold);
  font-weight: bold;
  font-size: 1.25rem;
}

.accordion-content ul li strong {
  color: var(--earth-brown);
  font-weight: 700;
}

/* === CONTACT GRID (used in Privacy & Terms Contact section) === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
  margin: 2.5rem 0 1.5rem;
}

.contact-method {
  text-align: center;
  padding: 1.5rem 1.0rem;
  background: var(--light-leopard-tan);
  border-radius: 12px;
  transition: all 0.35s ease;
  border: 1px solid rgba(216,140,63,0.15);
}

.contact-method:hover {
  background: var(--giraffe-gold);
  color: white;
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(216,140,63,0.28);
}

.contact-method i {
  font-size: 2.8rem;
  color: var(--yellow-ochre);
  margin-bottom: 1rem;
  transition: color 0.35s ease;
}

.contact-method:hover i {
  color: white;
}

.contact-method h4 {
  color: var(--earth-brown);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  transition: color 0.35s ease;
}

.contact-method:hover h4 {
  color: white;
}

.contact-method p {
  margin: 0;
  font-size: 0.98rem;
  transition: color 0.35s ease;
}

.contact-method:hover p {
  color: white;
}

/* === LEGAL NOTE (used in Privacy & Terms) === */
.legal-note {
  background: rgba(216,140,63,0.08);
  border-left: 5px solid var(--giraffe-gold);
  padding: 1.6rem;
  margin: 2.5rem 0;
  border-radius: 8px;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.legal-note i {
  font-size: 1.8rem;
  color: var(--giraffe-gold);
  margin-top: 0.3rem;
}

.legal-note p {
  margin: 0;
  color: var(--earth-brown);
  line-height: 1.65;
}

.legal-note a {
  color: var(--earth-brown);
  font-weight: 600;
  text-decoration: underline;
}

/* === RELATED DOCUMENTS (used on all 3 pages) === */
.legal-footer-links {
  max-width: 980px;
  margin: 6rem auto 0;
  padding-top: 4rem;
  border-top: 2px solid rgba(92,58,33,0.12);
}

.legal-footer-links h3 {
  text-align: center;
  font-size: 1.9rem;
  color: var(--earth-brown);
  margin-bottom: 2.1rem;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.8rem;
  background: var(--light-leopard-tan);
  border: 2px solid transparent;
  border-radius: 14px;
  transition: all 0.35s ease;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--earth-brown);
}

.related-link:hover {
  background: white;
  border-color: var(--giraffe-gold);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(216,140,63,0.18);
}




.related-link i:first-child {
  font-size: 2rem;
  color: var(--yellow-ochre);
}

.related-link span {
  flex: 1;
  font-weight: 700;
  font-size: 1.12rem;
}

.related-link i:last-child {
  font-size: 1.4rem;
  color: var(--giraffe-gold);
  transition: transform 0.4s ease;
}


.related-link:hover i:last-child {
  transform: translateX(8px);
}

/* === FAQ CATEGORIES (only used on FAQ page) === */
.faq-categories {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.category-title {
  font-size: 2rem;
  color: #9acd32;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-title i {
  color: var(--primary-teal);
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.8rem;
  background: white;
  border: 2px solid rgba(92,58,33,0.15);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--earth-brown);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn i {
  font-size: 1.3rem;
  color: var(--yellow-ochre);
}

.category-btn:hover {
  border-color: var(--giraffe-gold);
  background: var(--light-leopard-tan);
  color: var(--earth-brown);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--giraffe-gold);
  border-color: var(--giraffe-gold);
  color: white;
  box-shadow: 0 4px 15px rgba(216,140,63,0.3);
}

/* === FAQ CONTACT CTA (only used on FAQ page) === */
.faq-contact-cta {
  background:  linear-gradient(135deg, #9acd32, var(--forest-green));
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  margin: 80px auto 60px;
  max-width: 900px;
}

.cta-content i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.cta-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  background: white;
  color: var(--earth-brown);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
  background: #9acd32;
  color: white;
  transform: translateY(-3px);
}

.cta-buttons .btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-buttons .btn-secondary:hover {
  background: white;
  color: var(--earth-brown);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
  .hero-privacy,
  .hero-terms,
  .hero-faq {
    padding: 6rem 1rem 7rem;
  }

  .legal-content {
    padding: 4rem 1rem 5rem;
  }
}

@media (max-width: 768px) {
  .hero-privacy-content h1,
  .hero-terms-content h1,
  .hero-faq-content h1 {
    font-size: 2.6rem;
  }

  .accordion-header {
    padding: 1.3rem 1.6rem;
    font-size: 1.05rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    gap: 0.8rem;
  }

  .category-btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.92rem;
  }

  .faq-contact-cta {
    padding: 4rem 1.5rem;
  }

  .cta-content h3 {
    font-size: 2rem;
  }

  .related-links {
    grid-template-columns: 1fr;
  }
}