/* =========================================
   TERMS & CONDITIONS
========================================= */

.terms-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: #f8fafc;
  color: #334155;
}

/* =========================================
   BACKGROUND
========================================= */

.terms-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.terms-bg-left {
  top: 0;
  left: 0;
  background: rgba(16, 185, 129, 0.05);
}

.terms-bg-right {
  right: 0;
  bottom: 0;
  background: rgba(245, 158, 11, 0.05);
}

/* =========================================
   CONTAINER
========================================= */

.terms-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER
========================================= */

.terms-header {
  margin-bottom: 80px;
  text-align: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.terms-header h1 {
  margin: 24px 0 0;
  color: #0f172a;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
}

.terms-header p {
  max-width: 768px;
  margin: 16px auto 0;
  color: #475569;
  font-size: 16px;
  line-height: 28px;
}

/* =========================================
   CONTENT
========================================= */

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================
   COMMON CARD
========================================= */

.terms-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  background: #ffffff;
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.04);
}

.terms-card h2,
.highlight-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.terms-card p,
.highlight-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 32px;
}

/* =========================================
   CARD ACCENT
========================================= */

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.gradient-accent {
  background: linear-gradient(
    to bottom,
    #10b981,
    #6ee7b7
  );
}

.primary-accent {
  background: #10b981;
}

/* =========================================
   HOVER CARD
========================================= */

.hover-card {
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-description {
  margin-bottom: 24px !important;
  color: #64748b !important;
  line-height: 28px !important;
}

/* =========================================
   CHECK LIST
========================================= */

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #475569;
  font-size: 14px;
  line-height: 28px;
}

.check-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
}

.check-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   INFORMATION GRID
========================================= */

.information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.info-item:hover {
  border-color: #a7f3d0;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05);
}

.info-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  color: #059669;
}

.info-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-item h3 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

/* =========================================
   INNER CARDS
========================================= */

.inner-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inner-card {
  padding: 24px;
  border: 1px solid #f1f5f9;
  border-radius: 24px;
  background: #f8fafc;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.inner-card:hover {
  background: #ffffff;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.inner-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inner-card p {
  line-height: 28px;
}

/* =========================================
   HIGHLIGHT CARD
========================================= */

.highlight-card {
  overflow: hidden;
  padding: 32px;
  border: 1px solid #d1fae5;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    #ecfdf5,
    #ffffff
  );
}

.highlight-card p {
  color: #334155;
}

/* =========================================
   CONTACT CARD
========================================= */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 40px;
  background: #064e3b;
  text-align: center;
}

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

.contact-glow {
  position: absolute;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  filter: blur(120px);
}

.contact-glow-left {
  top: 0;
  left: 0;
}

.contact-glow-right {
  right: 0;
  bottom: 0;
}

.mail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
}

.contact-card p {
  max-width: 576px;
  margin: 16px auto 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 28px;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  padding: 12px 24px;
  border-radius: 16px;
  background: #f3d15f;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.contact-card a:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

  .terms-section {
    padding: 60px 0;
  }

  .terms-container {
    padding: 0 20px;
  }

  .terms-header {
    margin-bottom: 48px;
  }

  .terms-header h1 {
    font-size: 30px;
  }

  .terms-header p {
    font-size: 14px;
    line-height: 24px;
  }

  .terms-card,
  .highlight-card {
    padding: 24px;
    border-radius: 24px;
  }

  .terms-card h2,
  .highlight-card h2 {
    font-size: 18px;
  }

  .terms-card p,
  .highlight-card p {
    line-height: 28px;
  }

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

  .contact-card {
    padding: 40px 24px;
    border-radius: 32px;
  }

  .contact-card h2 {
    font-size: 26px;
  }

  .terms-bg {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {

  .terms-section {
    padding: 48px 0;
  }

  .terms-container {
    padding: 0 16px;
  }

  .terms-header {
    margin-bottom: 40px;
  }

  .legal-badge {
    font-size: 13px;
  }

  .terms-header h1 {
    margin-top: 18px;
    font-size: 26px;
  }

  .terms-card,
  .highlight-card {
    padding: 20px;
    border-radius: 20px;
  }

  .terms-card h2,
  .highlight-card h2 {
    font-size: 17px;
  }

  .terms-list {
    gap: 14px;
  }

  .terms-list li {
    font-size: 13px;
    line-height: 24px;
  }

  .inner-card {
    padding: 20px;
    border-radius: 20px;
  }

  .contact-card {
    padding: 36px 20px;
  }

  .contact-card h2 {
    font-size: 24px;
  }
}