/* ========================================
   Terms & Conditions Page Styles
   ======================================== */

/* ---------- Terms Banner ---------- */
.terms-banner {
  margin-top: 70px;
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-brown) 60%, #4A3520 100%);
  overflow: hidden;
  text-align: center;
}

.terms-banner-bg {
  position: absolute;
  inset: 0;
  background: url('../img/pattern.png') repeat;
  opacity: 0.05;
}

.terms-banner-content {
  position: relative;
  z-index: 2;
}

.terms-banner-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 15px;
  background: rgba(245, 166, 35, 0.15);
  padding: 6px 20px;
  border-radius: 30px;
}

.terms-banner-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 15px;
}

.terms-banner-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 25px;
}

.terms-banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.terms-banner-breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.terms-banner-breadcrumb a:hover {
  text-decoration: underline;
}

/* Banner Decorative Shapes */
.terms-banner-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.terms-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.terms-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -80px;
  right: -60px;
  animation: termsFloat 8s ease-in-out infinite;
}

.terms-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  bottom: -50px;
  left: -40px;
  animation: termsFloat 10s ease-in-out infinite reverse;
}

.terms-shape-3 {
  width: 120px;
  height: 120px;
  background: var(--accent);
  top: 30%;
  left: 10%;
  animation: termsFloat 6s ease-in-out infinite 2s;
}

@keyframes termsFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ---------- Terms Content Section ---------- */
.terms-content {
  padding: 80px 0;
  background: var(--cream);
}

.terms-wrapper {
  max-width: 880px;
  margin: 0 auto;
}

/* Last updated badge */
.terms-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.1);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 40px;
}

.terms-updated svg {
  flex-shrink: 0;
}

/* Table of Contents */
.terms-toc {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.terms-toc h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
}

.terms-toc ol li {
  counter-increment: toc-counter;
}

.terms-toc ol li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--medium-brown);
  padding: 6px 0;
  transition: var(--transition);
  font-weight: 500;
}

.terms-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(245, 166, 35, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.terms-toc ol li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.terms-toc ol li a:hover::before {
  background: var(--primary);
  color: var(--white);
}

/* Terms Cards */
.terms-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.terms-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.terms-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.terms-card:hover::before {
  opacity: 1;
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.terms-card-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.terms-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.terms-card p {
  font-size: 1rem;
  color: var(--medium-brown);
  line-height: 1.85;
  margin-bottom: 12px;
}

.terms-card p:last-child {
  margin-bottom: 0;
}

.terms-card ul {
  list-style: none;
  margin: 12px 0;
  padding-left: 0;
}

.terms-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: var(--medium-brown);
  line-height: 1.7;
}

.terms-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

.terms-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(245, 166, 35, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.terms-card a:hover {
  text-decoration-color: var(--primary);
}

/* Highlight box inside cards */
.terms-highlight {
  background: rgba(245, 166, 35, 0.06);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0 0;
  font-size: 0.94rem;
  color: var(--dark);
  line-height: 1.7;
}

/* CTA at the bottom */
.terms-cta {
  text-align: center;
  padding: 50px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.terms-cta-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.terms-cta h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.terms-cta p {
  font-size: 1rem;
  color: var(--medium-brown);
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .terms-banner {
    margin-top: 56px;
  }

  .terms-toc ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .terms-banner-title {
    font-size: 2.2rem;
  }

  .terms-card {
    padding: 28px 24px;
  }

  .terms-card-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 576px) {
  .terms-banner {
    padding: 80px 0 60px;
  }

  .terms-card {
    padding: 24px 20px;
  }

  .terms-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .terms-cta {
    padding: 35px 20px;
  }
}
