/* Modern Terms & Conditions Page Styling */

/* Color Variables */
:root {
  --primary-blue: #3b82f6;
  --primary-blue-dark: #1d4ed8;
  --secondary-blue: #6366f1;
  --accent-purple: #8b5cf6;
  --success-green: #10b981;
  --warning-yellow: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Container and Layout */
.terms {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Header Section */
.terms h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  border: none;
  padding: 0;
}

.terms .updated {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 500;
  background: var(--bg-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Content Container */
.terms > section:first-of-type {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Section Styling */
.terms section {
  margin-bottom: 2.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all 0.3s ease;
}

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

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

.terms section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  border-radius: 1px;
}

/* Paragraphs */
.terms p {
  margin: 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Legal Note Styling */
.terms .legal-note {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: #92400e;
  font-weight: 500;
  position: relative;
}

.terms .legal-note::before {
  content: '⚠️ ';
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.terms .legal-note p {
  margin: 0;
  display: inline;
}

/* Lists */
.terms ul,
.terms ol {
  margin: 1rem 0 1rem 0;
  color: var(--text-primary);
  list-style: none;
  padding-left: 0;
}

.terms ul li,
.terms ol li {
  margin: 0.75rem 0;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.terms ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Legal List Styling */
.terms ol.legal-list {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.terms ol.legal-list li {
  counter-increment: item;
  position: relative;
  padding-left: 2.5rem;
  margin: 1rem 0;
  background: var(--bg-gray-50);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1rem 2.5rem;
  border-left: 3px solid var(--primary-blue);
}

.terms ol.legal-list li::before {
  content: counter(item) ".";
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: var(--bg-white);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

/* Links */
.terms a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.terms a:hover {
  color: var(--primary-blue-dark);
  border-bottom-color: var(--primary-blue);
}

/* Contact Section Special Styling */
.terms section:last-of-type {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  border: none;
}

.terms section:last-of-type h2 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.terms section:last-of-type h2::after {
  background: rgba(255, 255, 255, 0.8);
}

.terms section:last-of-type p {
  color: rgba(255, 255, 255, 0.9);
}

.terms section:last-of-type a {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.terms section:last-of-type a:hover {
  color: white;
  border-bottom-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms {
    padding: 2rem 1rem;
  }
  
  .terms h1 {
    font-size: 2.5rem;
  }
  
  .terms .updated {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .terms section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .terms section h2 {
    font-size: 1.25rem;
  }
  
  .terms > section:first-of-type {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .terms {
    padding: 1.5rem 1rem;
  }
  
  .terms h1 {
    font-size: 2rem;
  }
  
  .terms section {
    padding: 1.25rem;
  }
  
  .terms section h2 {
    font-size: 1.125rem;
  }
  
  .terms ol.legal-list li {
    padding-left: 2rem;
  }
  
  .terms ol.legal-list li::before {
    left: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-white: #1f2937;
    --bg-gray-50: #111827;
    --bg-gray-100: #374151;
    --border-light: #374151;
    --border-medium: #4b5563;
  }
  
  .terms {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .terms section {
    background: var(--bg-white);
    border-color: var(--border-light);
  }
  
  .terms .updated {
    background: var(--bg-gray-100);
    border-color: var(--border-light);
    color: var(--text-secondary);
  }
  
  .terms section h2 {
    border-bottom-color: var(--border-light);
  }
  
  .terms ol.legal-list li {
    background: var(--bg-gray-50);
    border-left-color: var(--primary-blue);
  }
  
  .terms ol.legal-list li::before {
    background: var(--bg-gray-100);
    color: var(--primary-blue);
  }
  
  .terms .legal-note {
    background: linear-gradient(135deg, #451a03, #78350f);
    border-color: #f59e0b;
    color: #fbbf24;
  }
}