/* Shared styles for long-form legal pages (privacy policy, terms of service).
   Loaded after main.css so it only adds rules scoped to .legal. */

.legal {
  padding: 10rem 0 8rem;
}

.legal #container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal .legal_eyebrow {
  font-family: JakartaMedium;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 1rem;
}

.legal h1 {
  font-family: JakartaBold;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #101010;
}

.legal .legal_updated {
  color: #6b6b6b;
  font-size: 0.95rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e4e4e4;
}

.legal .legal_intro {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.legal .legal_toc {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3.5rem;
}

.legal .legal_toc p {
  font-family: JakartaMedium;
  margin-bottom: 0.75rem;
}

.legal .legal_toc ol {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
  margin: 0;
}

.legal .legal_toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.legal .legal_toc a {
  color: #101010;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal .legal_toc a:hover {
  border-bottom-color: #101010;
}

.legal h2 {
  font-family: JakartaMedium;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 3rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e4e4e4;
  color: #101010;
}

.legal h3 {
  font-family: JakartaMedium;
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  color: #101010;
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: #2b2b2b;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal strong {
  font-family: JakartaMedium;
  font-weight: normal;
  color: #101010;
}

.legal a {
  color: #101010;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .legal_contact {
  background: #101010;
  color: #fff;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.legal .legal_contact p,
.legal .legal_contact strong,
.legal .legal_contact a {
  color: #fff;
}

.legal .legal_contact p:last-child {
  margin-bottom: 0;
}

/* Links to the legal pages in the site footer */
footer #container .footer_bottom .footer_legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  opacity: 1;
}

footer #container .footer_bottom .footer_legal a {
  color: #fff;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

footer #container .footer_bottom .footer_legal a:hover {
  opacity: 1;
}

@media (max-width: 620px) {
  .legal {
    padding: 7rem 0 5rem;
  }

  .legal .legal_toc ol {
    columns: 1;
  }

  .legal h2 {
    font-size: 1.35rem;
  }
}
