/* Terms of Service Page Styles */

/* Terms Hero Section */
.terms-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 120px 0 80px;
  color: white;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #d4a44b, #f4d03f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 164, 75, 0.3);
  font-size: 0.9rem;
}

.last-updated i {
  color: #d4a44b;
}

/* Terms Content Section */
.terms-content {
  padding: 80px 0;
  background: #f8f9fa;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Table of Contents */
.toc-section {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #d4a44b;
}

.toc-section h2 {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  display: block;
  border-left: 3px solid transparent;
  padding-left: 15px;
  transition: all 0.3s ease;
}

.toc-list a:hover {
  color: #d4a44b;
  border-left-color: #d4a44b;
  padding-left: 20px;
}

/* Terms Sections */
.terms-sections {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.terms-section {
  padding: 40px;
  border-bottom: 1px solid #eee;
}

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

.terms-section h2 {
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 25px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4a44b;
}

.terms-section h3 {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin: 25px 0 15px 0;
  font-weight: 600;
}

.terms-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1rem;
}

.terms-section ul {
  margin: 15px 0;
  padding-left: 25px;
}

.terms-section li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  position: relative;
}

.terms-section li::marker {
  color: #d4a44b;
}

/* Strong text styling */
.terms-section strong {
  color: #1a1a2e;
  font-weight: 600;
}

/* Links */
.terms-section a {
  color: #d4a44b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.terms-section a:hover {
  color: #b8860b;
  text-decoration: underline;
}

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

.contact-method {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #d4a44b;
}

.contact-method h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.contact-method i {
  color: #d4a44b;
  font-size: 1rem;
}

.contact-method p {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.contact-method .contact-note {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin: 5px 0 0 0;
}

.contact-method a {
  color: #d4a44b;
  text-decoration: none;
  font-weight: 500;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* Legal Notice */
.legal-notice {
  background: #fff3cd;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  margin: 30px 0;
}

.legal-notice h3 {
  color: #856404;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

/* Business Info */
.business-info {
  background: #d1ecf1;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #17a2b8;
  margin: 30px 0;
}

.business-info h3 {
  color: #0c5460;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.business-info ul {
  margin: 0;
  padding-left: 20px;
}

.business-info li {
  color: #0c5460;
  margin-bottom: 8px;
}

.business-info strong {
  color: #0c5460;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Highlight targeted sections */
.terms-section:target {
  background: #fff9e6;
  border-left: 4px solid #d4a44b;
  margin-left: -4px;
}

/* Special styling for important sections */
.terms-section#payment-terms,
.terms-section#limitation-liability,
.terms-section#termination {
  border-left: 4px solid #dc3545;
  background: #fff5f5;
}

.terms-section#payment-terms h2,
.terms-section#limitation-liability h2,
.terms-section#termination h2 {
  color: #dc3545;
  border-bottom-color: #dc3545;
}

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

  .toc-section {
    padding: 25px;
  }

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

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

  .page-title {
    font-size: 2.5rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc-section {
    position: static;
    order: 2;
    margin-top: 30px;
  }

  .terms-sections {
    order: 1;
  }

  .terms-section {
    padding: 25px;
  }

  .terms-section h2 {
    font-size: 1.7rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .last-updated {
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .terms-section {
    padding: 20px;
  }

  .terms-section h2 {
    font-size: 1.5rem;
  }

  .terms-section h3 {
    font-size: 1.2rem;
  }

  .toc-section {
    padding: 20px;
  }

  .contact-method,
  .legal-notice,
  .business-info {
    padding: 20px;
  }
}
