/* =====================================================
   TERMS & CONDITIONS PAGE STYLES (OPTIMIZED)
   Prinopix - Web Invite & Event Photo Hosting
===================================================== */

/* Hero Section */
.terms-hero-section {
  padding: 160px 8% 30px;
  text-align: center;
  position: relative;
}

.terms-hero-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Hero Badge Tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(239, 89, 41, 0.12);
  border: 1px solid rgba(239, 89, 41, 0.3);
  color: var(--primary-light);
  font-size: var(--fs-normal);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(239, 89, 41, 0.15);
}

.hero-tag i {
  color: var(--primary);
}

.terms-hero-text h1 {
  font-size: var(--fs-hero);
  margin-bottom: 12px;
  line-height: 1.25;
}

.terms-hero-text h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terms-hero-subtitle {
  color: var(--text-muted);
  font-size: var(--fs-body-mobile);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Grid Wrapper for Cards */
.terms-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  max-width: 1150px;
  margin: 40px auto 90px;
  padding: 0 20px;
}

@media (max-width: 992px) {
  .terms-grid-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Terms Card Pro (Optimized) */
.terms-card-pro {
  position: relative;
  background: var(--glass-nav);
  backdrop-filter: blur(25px);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--glass-bg);
  box-shadow: var(--shadow-sm);
}

/* Subtle top gradient accent on card */
.terms-card-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
  transition: 0.4s ease;
}

.terms-card-pro:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  border-color: rgba(239, 89, 41, 0.4);
}

.terms-card-pro:hover::before {
  opacity: 1;
  height: 4px;
}

.terms-card-header {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.terms-card-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), var(--glass-dark));
  border: 1px solid rgba(239, 89, 41, 0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 24px;
  color: var(--primary);
  transition: all 0.4s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.terms-card-pro:hover .terms-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--light);
  border-color: var(--primary);
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 20px rgba(239, 89, 41, 0.4);
}

.terms-card-header h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--light);
  transition: 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terms-card-pro:hover .terms-card-header h3 {
  color: var(--primary-light);
}

.terms-card-header p {
  font-size: var(--fs-body-mobile);
  line-height: 1.75;
  color: var(--text-muted);
  text-align: left;
  min-height: 48px;
}

/* Features List (Optimized) */
.terms-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.terms-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  font-size: var(--fs-body-mobile);
  color: var(--light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.7;
  border-radius: var(--radius-xs);
  transition: 0.3s ease;
}

.terms-feature-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.terms-feature-item:last-child {
  border-bottom: none;
}

.terms-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(239, 89, 41, 0.15);
  color: var(--primary);
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
  transition: 0.3s ease;
}

.terms-feature-item:hover .terms-check-icon {
  background: var(--primary);
  color: var(--light);
  transform: scale(1.1);
}

/* Contact Cards inside Terms (Optimized) */
.terms-contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.terms-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: 0.35s ease;
}

.terms-contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(239, 89, 41, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.terms-contact-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  font-size: 18px;
  color: var(--primary);
  transition: 0.3s ease;
  flex-shrink: 0;
}

.terms-contact-card:hover .card-icon {
  background: var(--primary);
  color: var(--light);
}

.terms-contact-card .card-content span {
  font-size: var(--fs-label);
  color: var(--text-muted);
  display: block;
}

.terms-contact-card .card-content p {
  font-size: var(--fs-normal);
  color: var(--light);
  margin: 0;
  font-weight: 500;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .terms-hero-section {
    padding: 180px 8% 30px;
  }

  .terms-hero-text h1 {
    font-size: var(--fs-hero-laptop);
  }

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

@media (max-width: 768px) {
  .terms-hero-section {
    padding: 160px 5% 20px;
  }

  .terms-hero-text h1 {
    font-size: var(--fs-hero-mobile);
  }

  .terms-card-pro {
    border-radius: var(--radius-md);
    padding: 28px 22px;
  }

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