/* Legal pages */


.legal-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("/static/img/legal-hero-bg.f7dd999cf3c2.png");
  min-height: 400px;
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 160px 16px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.legal-hero__heading {
  color: #FFF;
  font-size: var(--text-4xl);
  font-weight: var(--font-w-medium);
  line-height: 100%;
  letter-spacing: -0.96px;
}

.legal-hero__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #FFF;
  text-align: center;
  text-overflow: ellipsis;
  font-size: var(--text-base);
  font-weight: var(--font-w-regular);
  line-height: 140%;
}

/* Index page */
.legal-index {
  padding: 3rem 1.5rem 5rem;
  max-width: 860px;
  margin: 0 auto;
}

.legal-index__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 1.5rem;
}

.legal-index__intro {
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.legal-index__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-index__link {
  font-size: 1rem;
  font-weight: 500;
  color: #1B3A6B;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.legal-index__link:hover {
  border-color: #1B3A6B;
}

.legal-breadcrumbs-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) 1.5rem var(--space-1);
}

/* Two-column layout */
.legal-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) 1.5rem 5rem;
}

/* Main content */
.legal-content {
  flex: 1 1 0;
  min-width: 0;
}

.legal-content__title {
  align-self: stretch;
  color: var(--color-dark-mint);
  font-size: var( --text-3xl);
  font-weight: var(--font-w-medium);
  line-height: 100%;
  letter-spacing: -0.8px;
}

.legal-content__meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

/* Rich text body */
.legal-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}

.legal-body h2 {
  align-self: stretch;
  color: var(--color-dark-mint);
  font-size: var( --text-2xl);
  font-weight: var(--font-w-medium);
  line-height: 100%;
  letter-spacing: -0.48px;
  margin: 2.5rem 0 var(--space-8);
}

.legal-body h3 {
  align-self: stretch;
  color: var(--color-dark-mint);
  font-size: var( --text-xl);
  font-weight: var(--font-w-medium);
  line-height: 100%;
  letter-spacing: -0.48px;
  margin: 1.75rem 0 var(--space-3);
}

.legal-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 1.25rem 0 0.4rem;
}

.legal-body p {
  align-self: stretch;
  color: var(--color-dark-mint-60);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: var(--font-w-regular);
  line-height: 140%;
  margin-bottom: 1rem;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.legal-body blockquote {
  border-left: 3px solid #C9A84C;
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  color: #555;
  font-style: italic;
}

.legal-body a {
  color: #2E7D9E;
  text-decoration: underline;
}

.legal-body a:hover {
  color: #1B3A6B;
}

/* Table */
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-body th {
  flex: 1 0 0;
  color: var(--color-dark-mint);
  font-size: var(--text-base);
  font-weight: var(--font-w-medium);
  line-height: 140%;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(9, 51, 49, 0.20);
}

.legal-body td {
  color: var(--color-dark-mint-60);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: var(--font-w-regular);
  line-height: 140%;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(9, 51, 49, 0.20);
  vertical-align: top;
}

/* TOC sidebar */
.legal-toc {
  flex: 0 0 260px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

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

.legal-toc__item {
  margin-bottom: 0.15rem;
}

.legal-toc__item--h3 {
  padding-left: 1rem;
}

.legal-toc__link {
  display: block;
  align-self: stretch;
  color: var(--color-dark-mint-40);
  font-size: var(--text-base);
  font-style: normal;
  font-weight: var(--font-w-regular);
  line-height: 140%;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.legal-toc__item.legal-toc__item--h2 a {
  font-weight: var(--font-w-medium);
  color: var(--color-dark-mint);
}

.legal-toc__link:hover {
  color: var(--color-dark-mint);
  background: #f4f6f9;
}

.legal-toc__link--active {
  color: var(--color-dark-mint);
  font-weight: 600;
  background: #f4f6f9;
}

/* Responsive: collapse to single column */
@media (max-width: 900px) {
  .legal-layout {
    flex-direction: column-reverse;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .legal-toc {
    position: static;
    flex: none;
    width: 100%;
    max-height: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
  }
}
