/* Legal pages stylesheet - LIGHT theme (queue ticket / dispatch board) */

.legal-page {
  background-color: #F6F7FB;
  color: #23283A;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

.legal-page h1, .legal-page h2, .legal-page h3 { line-height: 1.25; margin: 0; }

.legal-page a { color: #4A549E; text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* Scope isolation: legal content sections must never inherit any background */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Legal header (DIV/header element, never a section, solid bg) */
.legal-header {
  background-color: #F4EDDD;
  border-bottom: 1px solid #E1E4EE;
  padding: 42px 24px;
  position: relative;
}
.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header .legal-kicker {
  display: inline-block;
  background-color: #4A549E;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.legal-header h1 {
  color: #3D466B;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.legal-header .legal-updated {
  color: #5C6377;
  font-size: 14px;
  margin-top: 12px;
}
.legal-header .legal-updated strong { color: #4A549E; font-weight: 600; }

.legal-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #4A549E;
}

/* TOC */
.legal-toc {
  background-color: #EFF1F8;
  border: 1px solid #E1E4EE;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 48px;
}
.legal-toc h3 {
  font-size: 15px;
  color: #3D466B;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
}
.legal-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}
.legal-toc a { color: #4A549E; font-size: 14px; }
.legal-toc a:hover { color: #343d7d; text-decoration: underline; }

/* Legal content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.legal-content section {
  margin-bottom: 14px;
  padding: 6px 0 26px;
  border-bottom: 1px solid #E1E4EE;
}
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 {
  color: #3D466B;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-top: 8px;
  scroll-margin-top: 30px;
}
.legal-content h3 {
  color: #3D466B;
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 8px;
}
.legal-content p {
  color: #3A4056;
  font-size: 16px;
  margin: 0 0 14px;
}
.legal-content ul, .legal-content ol.legal-list {
  color: #3A4056;
  font-size: 16px;
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: #2c3150; }

/* Legal footer */
.legal-footer {
  background-color: #1B2030;
  color: #d7dcf0;
  padding: 34px 24px;
  text-align: center;
}
.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.legal-footer a {
  color: #dfe3f5;
  text-decoration: underline;
}
.legal-footer a:hover { color: #E8A23B; }
.legal-footer p { margin: 0 0 8px; font-size: 14px; color: #aeb4cf; }
.legal-footer .legal-footer-home {
  display: inline-block;
  background-color: #4A549E;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 16px;
}
.legal-footer .legal-footer-home:hover { background-color: #3c4585; text-decoration: none; }

@media (max-width: 760px) {
  .legal-toc ol { columns: 1; }
  .legal-header h1 { font-size: 30px; }
  .legal-content h2 { font-size: 21px; }
}
