/* Legal page layout: hero + sticky "on this page" nav + content column.
   Shared by /privacy/, /terms/, /cookies/. */

.legal-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid rgba(0, 25, 100, .1);
}

.legal-hero__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-hero h1 {
  font-size: 2.5rem;
  line-height: 1.08;
}

@media (min-width: 900px) {
  .legal-hero h1 {
    font-size: 4rem;
  }
}

.legal-hero__updated {
  font-size: 1.125rem;
  color: var(--text-2);
  font-weight: 500;
}

.legal-body {
  padding: 72px 0 96px;
}

.legal-body__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .legal-body__inner {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

.legal-toc {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--navy);
}

@media (min-width: 900px) {
  .legal-toc {
    position: sticky;
    top: 100px;
  }
}

.legal-toc__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  padding: 14px 0 8px;
}

.legal-toc__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 25, 100, .1);
  display: grid;
  grid-template-columns: 32px 1fr;
}

.legal-toc__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--blue-text);
}

.legal-content {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.legal-content__intro {
  padding-bottom: 32px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.legal-section {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 25, 100, .12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 1.625rem;
  line-height: 1.25;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.legal-section__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--blue-text);
  flex: none;
}

.legal-section p,
.legal-section li {
  font-size: 1.125rem;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: disc;
}

.legal-section a {
  color: var(--blue-text);
  font-weight: 600;
}

.legal-section a:hover {
  color: var(--navy);
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 2px solid var(--navy);
  white-space: nowrap;
}

.legal-table td {
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 25, 100, .12);
}

.legal-table strong {
  color: var(--navy);
}

.legal-note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}

.legal-note strong {
  color: var(--navy);
}
