/* Legal pages (Terms & Privacy) – white text, red for big items, dark background */

.legal-page .rainbow-elements-area {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.legal-page .entry-content {
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.75;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Big item: main title in red */
.legal-page .entry-content > h2 {
  font-family: var(--secondary-font);
  font-size: var(--h2);
  font-weight: var(--p-bold, 700);
  line-height: 1.23;
  color: var(--color-secondary, #FB5343);
  margin-bottom: 20px;
}

.legal-page .entry-content .legal-meta {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.legal-page .entry-content > .legal-intro {
  font-size: 17px;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-page .entry-content ol {
  list-style: none;
  counter-reset: section;
  padding-left: 0;
  margin: 0;
}

.legal-page .entry-content ol > li {
  counter-increment: section;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}

.legal-page .entry-content ol > li:first-child {
  padding-top: 0;
}

.legal-page .entry-content ol > li:last-child {
  border-bottom: none;
}

/* Big items: section headings in same red */
.legal-page .entry-content ol > li > strong {
  display: block;
  font-family: var(--secondary-font);
  font-size: 17px;
  font-weight: var(--p-bold, 700);
  line-height: 1.3;
  color: var(--color-secondary, #FB5343);
  margin-bottom: 0.75rem;
}

.legal-page .entry-content ol > li > strong::before {
  content: counter(section) ". ";
  color: var(--color-secondary, #FB5343);
  font-weight: var(--p-bold, 700);
}

.legal-page .entry-content ol > li p,
.legal-page .entry-content ol > li ul {
  font-size: 17px;
  line-height: 1.75;
  color: #ffffff;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.legal-page .entry-content ol > li p:first-of-type {
  margin-top: 0;
}

.legal-page .entry-content ol > li ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.legal-page .entry-content ol > li ul li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.legal-page .entry-content ol > li ul li::marker {
  color: rgba(255, 255, 255, 0.7);
}

/* 1.1, 1.2, etc. – sub-items in white */
.legal-page .entry-content .legal-subsection,
.legal-page .entry-content .legal-subsection strong {
  font-size: 17px;
  line-height: 1.4;
  font-weight: var(--p-bold, 700);
  color: #ffffff !important;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.legal-page .entry-content .legal-subsection:first-child {
  margin-top: 0.5rem;
}

.legal-page .entry-content ol > li p,
.legal-page .entry-content ol > li p strong,
.legal-page .entry-content ol > li ul li {
  color: #ffffff !important;
}

.legal-page .entry-content ol > li p strong {
  font-weight: var(--p-bold, 700);
}

.legal-page .entry-content a {
  color: var(--color-secondary, #FB5343);
  text-decoration: none;
}

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

/* Responsive: use same breakpoints as site typography */
@media (max-width: 991px) {
  .legal-page .entry-content > h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .legal-page .entry-content > h2 {
    font-size: 28px;
  }
}
