/* Additional styles for Terms of Service page */

/* Main content area */
.terms-content {
  max-width: var(--max);
  margin: 4rem auto;
  padding: 0 2rem;
}

.terms-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

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

/* Last updated badge */
.last-updated {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  transition: color 0.4s ease;
}

.last-updated i {
  color: var(--primary-color);
  transition: color 0.4s ease;
}

.last-updated-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  box-shadow: var(--shadow-sm);
}

/* Terms sections */
.terms-section {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
  border: 1px solid var(--border-color);
  border-left: 4px solid transparent;
}

.terms-section:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
}

.terms-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--bg-gray);
  padding-bottom: 0.75rem;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.terms-section h3 i {
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: color 0.4s ease;
}

.terms-section h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.4s ease;
}

.terms-section h4 i {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.terms-section p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-dark);
  transition: color 0.4s ease;
}

.terms-section ul, 
.terms-section ol {
  margin: 1.25rem 0;
  padding-left: 2rem;
  color: var(--text-dark);
  transition: color 0.4s ease;
}

.terms-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.terms-section li::marker {
  color: var(--primary-color);
}

/* Service cards grid */
.services-grid-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.service-card {
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.4s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--bg-light);
}

.service-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  border-bottom: none;
  padding-bottom: 0;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Blog categories */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.category-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.category-badge:hover {
  transform: translateY(-2px);
}

.category-badge i {
  font-size: 1rem;
}

/* Info cards */
.info-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.info-card p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card i {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: color 0.4s ease;
}

.warning-card {
  background: rgba(239, 68, 68, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid #ef4444;
}

.warning-card p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.warning-card i {
  color: #ef4444;
  font-size: 1.2rem;
}

/* Intellectual property */
.ip-section {
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  transition: background-color 0.4s ease;
}

.ip-item {
  text-align: center;
}

.ip-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  transition: color 0.4s ease;
}

.ip-item h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  transition: color 0.4s ease;
}

.ip-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Contact card */
.terms-contact-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.terms-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.terms-contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: color 0.4s ease;
}

.terms-contact-card h3 i {
  color: var(--primary-color);
  transition: color 0.4s ease;
}

.terms-email-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-gray);
  padding: 1rem 2rem;
  border-radius: 50px;
  margin: 1rem 0;
  gap: 1rem;
  transition: background-color 0.4s ease;
}

.terms-email-container i {
  color: #DB4437;
  font-size: 1.8rem;
}

.terms-email-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.3s ease;
}

.terms-email-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.terms-response-time {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: color 0.4s ease;
}

/* Add these classes to your CSS */
.contact-wrapper {
  text-align: center;
  margin: 1.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-gray);
  padding: 1rem 2rem;
  border-radius: 50px;
  gap: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-email {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  word-break: break-all;
}

/* Agreement buttons */
.agreement-box {
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  text-align: center;
  border: 2px dashed var(--primary-color);
  transition: background-color 0.4s ease;
}

.agreement-box p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.agreement-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-agree {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-agree:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-agree i {
  transition: transform 0.3s ease;
}

.btn-agree:hover i {
  transform: translateX(5px);
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .nav-overlay,
  .menu-toggle,
  .social-icons,
  .agreement-box {
    display: none !important;
  }
  
  .terms-content {
    margin: 1rem auto;
  }
  
  .terms-section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  .terms-section:hover {
    transform: none;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terms-content {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .terms-content h2 {
    font-size: 2rem;
  }
  
  .terms-section {
    padding: 1.5rem;
  }
  
  .terms-section h3 {
    font-size: 1.3rem;
  }
  
  .services-grid-terms {
    grid-template-columns: 1fr;
  }
  
  .ip-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-categories {
    justify-content: center;
  }
  
  .terms-email-container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .terms-email-link {
    font-size: 1rem;
  }
  
  .agreement-box {
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .agreement-buttons {
    width: 100%;
    gap: 0.75rem;
  }
  
  .btn-agree {
    padding: 0.75rem 1rem;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

.contact-box {
    display: flex;
    width: 100%;
    padding: 1rem;
  }
  
  .contact-email {
    font-size: 1rem;
  }
}

/* Dark theme specific overrides */
body.dark-theme .service-card {
  background: var(--bg-light);
}

body.dark-theme .service-card:hover {
  background: var(--bg-gray);
}

body.dark-theme .ip-section {
  background: var(--bg-light);
}

body.dark-theme .agreement-box {
  background: var(--bg-light);
}

body.dark-theme .terms-email-container {
  background: var(--bg-light);
}