/* Legal Pages Styles */

/* Page Header */
.page-header {
  background-color: #f9fafb;
  padding: 4rem 1rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1rem;
}

.page-description {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0 auto;
}

/* Legal Content Section */
.legal-content {
  padding: 3rem 1rem;
}

.legal-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 62rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .legal-wrapper {
    grid-template-columns: 15rem 1fr;
  }
}

/* Table of Contents */
.legal-toc {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
  align-self: start;
  border: 1px solid #e5e7eb;
}

.toc-header {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.legal-toc li {
  margin-bottom: 0.75rem;
}

.legal-toc a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease-in-out;
}

.legal-toc a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* Legal Text */
.legal-text {
  line-height: 1.7;
}

.legal-text section {
  margin-bottom: 3rem;
}

.legal-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.legal-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
}

.legal-text p {
  margin-bottom: 1rem;
  color: #4b5563;
}

.legal-text ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-text li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.legal-text a {
  color: #2563eb;
  font-weight: 500;
}

.legal-text a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .legal-wrapper {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.04);
    padding: 1rem;
  }
  .toc-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
    background: none;
    border: none;
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    cursor: pointer;
  }
  .legal-toc ul {
    display: none;
    margin-top: 0.5rem;
  }
  .legal-toc.open ul {
    display: block;
  }
} 