/* Terms and Conditions Page Styles */

/* Hero Section */
.terms-hero {
  background: var(--dark-bg); /* Dark navy background */
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.terms-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 25, 41, 0.9) 0%,
    rgba(10, 25, 41, 0.4) 50%,
    rgba(10, 25, 41, 0.9) 100%
  );
}

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

.terms-hero-tagline .tagline-small {
  color: var(--primary-color); /* Bright blue accent */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 4px;
  border-left: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
}

.terms-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.terms-hero .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.terms-hero .highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.terms-hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 300;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 25, 41, 0.6);
  padding: 14px 24px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  border: 1px solid rgba(77, 171, 247, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.last-updated i {
  color: #4dabf7;
}

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

.terms-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sidebar - Table of Contents */
.terms-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-container {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.toc-container h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-nav li {
  margin-bottom: 8px;
}

.toc-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.toc-link:hover {
  background: white;
  color: var(--dark-bg);
  transform: translateX(5px);
}

.toc-link.active {
  background: var(--gradient-primary);
  color: white;
}

/* Main Content */
.terms-main {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.terms-document {
  padding: 50px;
}

/* Introduction */
.terms-intro {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.terms-intro h2 {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.terms-intro p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.important-notice {
  background: linear-gradient(135deg, #fff3cd, #fcf4a3);
  border: 1px solid #ffe066;
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.important-notice i {
  color: #856404;
  font-size: 1.2rem;
  margin-top: 2px;
}

.important-notice p {
  color: #856404;
  margin: 0;
  font-weight: 500;
}

/* Terms Sections */
.terms-section {
  margin-bottom: 50px;
  scroll-margin-top: 100px;
}

.terms-section h2 {
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.terms-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--secondary-color);
}

.terms-section h4 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 25px 0 15px;
}

.terms-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.terms-section ul {
  color: var(--text-secondary);
  margin: 20px 0;
  padding-left: 0;
}

.terms-section li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.terms-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

/* Special Content Layouts */
.definitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.definition-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.definition-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.definition-item h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.definition-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Services List */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.service-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.service-item h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Info Boxes */
.info-box {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid #2196f3;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-box i {
  color: #1976d2;
  font-size: 1.2rem;
  margin-top: 2px;
}

.info-box p {
  color: #1976d2;
  margin: 0;
  font-weight: 500;
}

/* Prohibited Activities */
.prohibited-activities {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.prohibited-activities h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
}

.prohibited-activities h4:first-child {
  margin-top: 0;
}

/* Content Rights */
.content-rights {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.content-rights h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
}

.content-rights h4:first-child {
  margin-top: 0;
}

/* IP Details */
.ip-details {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.ip-details h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
}

.ip-details h4:first-child {
  margin-top: 0;
}

/* Privacy Highlights */
.privacy-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.privacy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.privacy-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.privacy-item h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.privacy-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Payment Details */
.payment-details {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.payment-details h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
}

.payment-details h4:first-child {
  margin-top: 0;
}

/* Termination Details */
.termination-details {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.termination-details h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 25px;
}

.termination-details h4:first-child {
  margin-top: 0;
}

/* Disclaimer Box */
.disclaimer-box {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border: 1px solid #f44336;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.disclaimer-box i {
  color: #d32f2f;
  font-size: 1.2rem;
  margin-top: 2px;
}

.disclaimer-box p {
  color: #d32f2f;
  margin: 0;
  font-weight: 600;
}

/* Liability Cap */
.liability-cap {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ff9800;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
}

.liability-cap p {
  color: #f57c00;
  margin: 0;
  font-weight: 600;
}

/* Jurisdiction Details */
.jurisdiction-details {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.jurisdiction-details h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Changes Process */
.changes-process {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
}

.changes-process h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.contact-item h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Document Footer */
.document-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 5px 0;
}

.footer-actions {
  display: flex;
  gap: 15px;
}

.print-btn,
.download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.print-btn:hover,
.download-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .terms-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .terms-sidebar {
    position: static;
    order: 2;
  }

  .toc-container {
    padding: 20px;
  }

  .terms-document {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 100px 0 60px;
  }

  .terms-hero h1 {
    font-size: 2.5rem;
  }

  .terms-hero-description {
    font-size: 1.1rem;
  }

  .terms-document {
    padding: 20px;
  }

  .definitions-grid,
  .services-list,
  .privacy-highlights,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .document-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .terms-hero h1 {
    font-size: 2rem;
  }

  .terms-hero-description {
    font-size: 1rem;
  }

  .terms-content {
    padding: 40px 0;
  }

  .terms-layout {
    padding: 0 15px;
  }

  .terms-document {
    padding: 15px;
  }

  .service-item,
  .privacy-item,
  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .service-item i,
  .privacy-item i,
  .contact-item i {
    margin-top: 0;
  }
}

/* Smooth Scrolling for TOC Links */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .terms-sidebar,
  .footer-actions,
  .navbar,
  footer {
    display: none !important;
  }

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

  .terms-document {
    box-shadow: none;
    border: none;
  }

  .terms-section {
    break-inside: avoid;
  }
}
