/* Terms of Use Page Styling */

.terms-section {
  min-height: 100vh;
  padding: 100px 20px 60px;
  background: var(--bg);
}

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

.terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.terms-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.terms-header h1 {
  font-family: var(--font);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.terms-effective {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

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

.terms-block {
  margin-bottom: 36px;
}

.terms-block:last-child {
  margin-bottom: 0;
}

.terms-block h2 {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.terms-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.terms-block p:last-child {
  margin-bottom: 0;
}

.terms-block a {
  color: var(--primary);
  text-decoration: none;
}

.terms-block a:hover {
  text-decoration: underline;
}

.terms-block ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.terms-block ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.terms-block ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: bold;
}

.highlight-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.highlight-box h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 0.9rem;
}

.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
}

.contact-box p {
  margin: 0 0 4px 0;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

/* Footer (matching main style) */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links span {
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .terms-section {
    padding: 80px 16px 40px;
  }
  
  .terms-header {
    padding: 24px 24px 20px;
  }
  
  .terms-header h1 {
    font-size: 1.75rem;
  }
  
  .terms-content {
    padding: 24px;
  }
  
  .terms-block {
    margin-bottom: 28px;
  }
  
  .terms-block h2 {
    font-size: 1.1rem;
  }
  
  .terms-block p,
  .terms-block ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .terms-header {
    padding: 20px 20px 16px;
  }
  
  .terms-header h1 {
    font-size: 1.5rem;
  }
  
  .terms-content {
    padding: 20px;
  }
  
  .highlight-box {
    padding: 16px;
  }
}
