/* Legal pages (Privacy Policy, Terms & Conditions) — "Legal page" template.
   Uses the theme's colour variables, so light and dark mode follow the site switch. */
.legal-page-section .legal-updated {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--text-color);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.legal-content {
  font-family: var(--font-inter);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-color);
  overflow-wrap: break-word;
}
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
  font-family: var(--font-hankenGrotesk);
  color: var(--title-color);
  font-weight: 700;
  line-height: 1.3;
  margin: 40px 0 16px;
}
.legal-content > :first-child { margin-top: 0; }
.legal-content h1 { font-size: 40px; }
.legal-content h2 { font-size: 30px; }
.legal-content h3 { font-size: 23px; }
.legal-content h4 { font-size: 20px; }
.legal-content h5, .legal-content h6 { font-size: 18px; }
.legal-content p { margin: 0 0 18px; color: var(--text-color); font-size: inherit; line-height: inherit; }
.legal-content strong, .legal-content b { color: var(--title-color); font-weight: 600; }
.legal-content a { color: var(--primary-color1); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-content a:hover { color: var(--title-color); }
.legal-content ul,
.legal-content ol { margin: 0 0 20px; padding-left: 26px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content ul ul { list-style: circle; }
.legal-content ol ol { list-style: lower-alpha; }
.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul { margin: 8px 0 0; }
.legal-content li { margin-bottom: 8px; padding-left: 4px; color: var(--text-color); }
.legal-content li::marker { color: var(--primary-color1); }
.legal-content li > p { margin-bottom: 6px; }
.legal-content blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary-color1); }
.legal-content hr { margin: 32px 0; border-color: var(--border-color); opacity: 1; }
.legal-content .ta-center { text-align: center; }
.legal-content .ta-right { text-align: right; }
.legal-content .ta-justify { text-align: justify; }

/* Tables scroll sideways on small screens instead of breaking the layout. */
.rich-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
}
.legal-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.legal-content caption { caption-side: top; padding: 0 0 10px; color: var(--title-color); font-weight: 600; }
.legal-content th,
.legal-content td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  vertical-align: top;
  text-align: left;
}
.legal-content th { color: var(--title-color); font-weight: 600; background: rgba(var(--primary-color1-opc), .06); }
.legal-content th.ta-center, .legal-content td.ta-center { text-align: center; }
.legal-content th.ta-right, .legal-content td.ta-right { text-align: right; }
.legal-content th.ta-justify, .legal-content td.ta-justify { text-align: justify; }
.legal-content td > p:last-child,
.legal-content th > p:last-child { margin-bottom: 0; }

@media (max-width: 991.98px) {
  .legal-content { font-size: 16px; }
  .legal-content h1 { font-size: 32px; }
  .legal-content h2 { font-size: 26px; }
  .legal-content h3 { font-size: 21px; }
}
@media (max-width: 575.98px) {
  .legal-content h1 { font-size: 28px; }
  .legal-content h2 { font-size: 23px; }
  .legal-content h3 { font-size: 19px; }
  .legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 30px; }
  .legal-content th, .legal-content td { padding: 10px 12px; }
}
