/*-- -------------------------- -->
<---       Legal Pages        -->
<--- -------------------------- -*/

#legal-content {
  padding: var(--sectionPadding);
  background-color: #fff;
}

#legal-content .cs-container {
  width: 100%;
  max-width: 49rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 6vw, 4rem);
}

#legal-content .cs-content {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#legal-content .cs-last-updated {
  font-size: 0.875rem;
  color: var(--bodyTextColorWhite);
  opacity: 0.7;
  margin-bottom: 2rem;
  font-style: italic;
}

#legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.953125rem);
  font-weight: 700;
  line-height: 1.2em;
  text-align: inherit;
  width: 100%;
  margin: 2rem 0 1rem 0;
  color: var(--headerColor);
  position: relative;
}

#legal-content h2:first-of-type {
  margin-top: 0;
}

#legal-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2em;
  text-align: inherit;
  width: 100%;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--headerColor);
}

#legal-content p {
  font-size: var(--bodyFontSize);
  line-height: 1.5em;
  text-align: inherit;
  width: 100%;
  margin: 0 0 1rem 0;
  color: var(--bodyTextColor);
}

#legal-content p:last-of-type {
  margin-bottom: 2rem;
}

#legal-content ul,
#legal-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: var(--bodyTextColor);
}

#legal-content li {
  font-size: var(--bodyFontSize);
  line-height: 1.5em;
  margin: 0.5rem 0;
  list-style: disc;
}

#legal-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s;
}

#legal-content a:hover {
  color: var(--primaryLight);
}

#legal-content strong {
  font-weight: 700;
  color: var(--headerColor);
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #legal-content {
    background-color: rgba(0, 0, 0, 0.2);
  }

  body.dark-mode #legal-content h2,
  body.dark-mode #legal-content h3,
  body.dark-mode #legal-content strong {
    color: var(--bodyTextColorWhite);
  }

  body.dark-mode #legal-content p,
  body.dark-mode #legal-content li,
  body.dark-mode #legal-content ul,
  body.dark-mode #legal-content ol {
    color: var(--bodyTextColorWhite);
  }

  body.dark-mode #legal-content a {
    color: var(--primaryLight);
  }

  body.dark-mode #legal-content a:hover {
    color: var(--secondary);
  }
}
