/* ==========================================================================
   VICTORYMOON — Shared legal stylesheet (privacy + terms-of-service)
   Loaded only by the legal pages; defines its own dark lunar-silver palette.
   ========================================================================== */

.legal-page {
  background-color: #0C0E12;
  color: #9AA4B4;
  font-size: 16px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #C9D1DC;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Scope isolation — never let any section background leak onto legal pages
   -------------------------------------------------------------------------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   Legal header (a <header> element, never a <section>)
   -------------------------------------------------------------------------- */
.legal-header {
  background-color: #161A20;
  border-bottom: 1px solid #232936;
  padding: 64px 0 48px;
}

.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-brand {
  display: inline-block;
  color: #C9D1DC;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 28px;
  text-decoration: none;
}

.legal-brand:hover {
  text-decoration: none;
  color: #EDF0F4;
}

.legal-title {
  color: #EDF0F4;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

.legal-meta {
  color: #9AA4B4;
  font-size: 15px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Content container
   -------------------------------------------------------------------------- */
.legal-content {
  padding: 48px 0 0;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Table of contents (uses a class selector, never a bare nav rule)
   -------------------------------------------------------------------------- */
.toc {
  border: 1px solid #232936;
  background-color: #161A20;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 56px;
}

.toc-title {
  color: #EDF0F4;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}

.toc-list li {
  margin-bottom: 10px;
  break-inside: avoid;
}

.toc-list a {
  color: #C9D1DC;
  font-size: 15px;
}

.toc-list a:hover {
  color: #EDF0F4;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Legal sections
   -------------------------------------------------------------------------- */
.legal-content section {
  margin-bottom: 48px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  color: #EDF0F4;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 18px;
}

.sec-num {
  color: #C9D1DC;
  font-weight: 800;
  margin-right: 6px;
}

.legal-content h3 {
  color: #EDF0F4;
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #9AA4B4;
  font-size: 16px;
  margin: 0 0 16px;
}

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

/* --------------------------------------------------------------------------
   Legal footer — tight, no wasted space, links back to the homepage
   -------------------------------------------------------------------------- */
.legal-footer {
  margin-top: 64px;
  background-color: #08090C;
  border-top: 1px solid #232936;
  padding: 28px 0;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-home {
  color: #C9D1DC;
  font-size: 15px;
  font-weight: 600;
}

.legal-home:hover {
  color: #EDF0F4;
  text-decoration: none;
}

.legal-footer-note {
  color: #9AA4B4;
  font-size: 13px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .legal-header {
    padding: 44px 0 36px;
  }

  .legal-title {
    font-size: 32px;
  }

  .toc-list {
    columns: 1;
  }

  .legal-content {
    padding-top: 32px;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
