/* ===============================================
   TERMS & CONDITIONS PAGE CSS
   Navbar → navbar-responsive.css + style.css
   Back-to-top → style.css + home.js
   Terms cards stay 1 column (not 2-in-a-row)
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --navbar: #5DADE2;
  --bg: #F8FBFF;
  --mint: #7ED6A5;
  --mint-hover: #66c491;
  --hover-blue: #4A90E2;
  --text: #2C3E50;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
  --shadow-hover: 0 20px 40px rgba(44, 62, 80, 0.14);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ========== PAGE BUTTONS ========== */
.terms-main .btn,
.bottom-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.terms-main .btn i,
.bottom-cta .btn i {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* ========== HERO ========== */
.terms-hero {
  position: relative;
  background: linear-gradient(135deg, #E8F4FC 0%, #F8FBFF 50%, #EAF8F0 100%);
  padding: 90px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.terms-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93, 173, 226, 0.12);
  color: var(--navbar);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.terms-hero .eyebrow i {
  font-size: 1rem;
}

.terms-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--text);
  margin-bottom: 18px;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: #5a6a7a;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.95rem;
  color: #6b7c8d;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta i {
  color: var(--mint);
}

.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--navbar);
  font-size: 1.2rem;
}

.floating-icon.icon-1 { top: 18%; left: 8%; }
.floating-icon.icon-2 { top: 25%; right: 10%; }
.floating-icon.icon-3 { bottom: 22%; left: 12%; }
.floating-icon.icon-4 { bottom: 18%; right: 8%; }

/* ========== MAIN ========== */
.terms-main {
  padding: 70px 0 90px;
}

.intro-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 50px;
  border: 1px solid rgba(93, 173, 226, 0.12);
}

.tilt-card-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.intro-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navbar), var(--mint));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
}

.intro-text h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--text);
}

.intro-text p {
  margin-bottom: 12px;
  color: #5a6a7a;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* Terms cards — single column */
.terms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.terms-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(44, 62, 80, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.terms-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: linear-gradient(90deg, rgba(93, 173, 226, 0.08), rgba(126, 214, 165, 0.06));
  border-bottom: 1px solid rgba(93, 173, 226, 0.1);
}

.terms-icon {
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navbar);
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(93, 173, 226, 0.15);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.terms-card:hover .terms-icon {
  transform: rotateY(360deg) scale(1.08);
}

.terms-card-header h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.terms-card-body {
  padding: 24px 28px 28px;
}

.terms-card-body p {
  color: #5a6a7a;
  margin-bottom: 14px;
}

.terms-card-body p:last-child {
  margin-bottom: 0;
}

.terms-card-body ul {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-card-body ul li {
  position: relative;
  padding-left: 22px;
  color: #5a6a7a;
  font-size: 0.98rem;
}

.terms-card-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
}

.highlight-card {
  border: 1px solid rgba(126, 214, 165, 0.35);
}

.highlight-card .terms-card-header {
  background: linear-gradient(90deg, rgba(126, 214, 165, 0.15), rgba(93, 173, 226, 0.08));
}

.highlight-card .terms-icon {
  color: var(--mint-hover);
  box-shadow: 0 4px 12px rgba(126, 214, 165, 0.25);
}

.contact-card .contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-item i {
  color: var(--navbar);
  font-size: 1.15rem;
  margin-top: 3px;
}

.contact-item a {
  color: var(--navbar);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.bottom-cta {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--navbar), #4A90E2);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  box-shadow: 0 15px 40px rgba(93, 173, 226, 0.35);
}

.cta-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-content p {
  opacity: 0.92;
  font-size: 1rem;
}

.bottom-cta .btn-primary {
  background: var(--white);
  color: var(--navbar);
  box-shadow: none;
  white-space: nowrap;
}

.bottom-cta .btn-primary:hover {
  background: var(--mint);
  color: var(--white);
  transform: translateY(-2px);
}

.related-links {
  margin-top: 40px;
  text-align: center;
  font-size: 1rem;
  color: #5a6a7a;
}

.related-links a {
  color: var(--navbar);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.related-links a:hover {
  border-bottom-color: var(--navbar);
}

/* ========== RESPONSIVE (no 2-col cards) ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .terms-hero {
    padding: 60px 0 50px;
  }

  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .floating-icon.icon-1 { top: 12%; left: 4%; }
  .floating-icon.icon-2 { top: 14%; right: 4%; }
  .floating-icon.icon-3 { bottom: 14%; left: 6%; }
  .floating-icon.icon-4 { bottom: 12%; right: 4%; }

  .terms-main {
    padding: 40px 0 60px;
  }

  .intro-card {
    padding: 28px 20px;
  }

  .tilt-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .terms-card-header {
    padding: 18px 18px;
  }

  .terms-card-header h3 {
    font-size: 1.05rem;
  }

  .terms-card-body {
    padding: 18px 18px 22px;
  }

  .bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 22px;
    gap: 20px;
  }

  .bottom-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .terms-hero h1 {
    font-size: 1.9rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-meta {
    gap: 12px;
    font-size: 0.85rem;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .intro-text h2 {
    font-size: 1.3rem;
  }

  .terms-card-body ul li {
    font-size: 0.9rem;
  }

  .footer-container {
    gap: 24px 14px;
  }
}
