/* ============================================================
   MTVan Can LLC — Shared Legal Stylesheet
   css/legal.css  —  legal pages load ONLY this stylesheet,
   so this file defines its own background and text colours.
   Single-column centred legal shape with strong contrast.
   ============================================================ */

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

body {
  margin: 0;
  background-color: #17191C;
  color: #F5F1E6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ---- scope isolation: legal sections never borrow styles ---- */

.legal-page .legal-content section {
  background-color: transparent !important;
  background: transparent !important;
}

/* ---- legal binder ---- */

.legal-page {
  display: block;
  min-height: 100vh;
  position: relative;
  background-color: #17191C;
  z-index: 1;
}

/* A single centred column wrapper */
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- legal header: solid background, strong h1 contrast ---- */

.legal-header {
  background-color: #2A2F34;
  padding: 88px 24px 48px;
  text-align: center;
  border-bottom: 4px solid #D89A44;
  color: #F5F1E6;
}

.legal-header-logo {
  display: block;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #D89A44;
  margin-bottom: 22px;
}

.legal-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.12;
  color: #F5F1E6;
}

.legal-header-note {
  color: #858D96;
  font-style: italic;
  font-size: 16px;
  margin: 16px 0 0;
}

/* ---- document meta line ---- */

.legal-meta {
  text-align: center;
  color: #858D96;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 32px 0 24px;
  border-bottom: 1px solid #2A2F34;
}

.legal-intro {
  padding-top: 40px;
  font-size: 20px;
  font-style: italic;
  color: #F5F1E6;
  text-align: justify;
}

/* ---- table of contents ---- */

.legal-toc {
  margin: 48px 0 0;
  background-color: #2A2F34;
  padding: 32px 36px;
}

.legal-toc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D89A44;
  margin: 0 0 20px;
}

.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.legal-toc-list li {
  margin: 10px 0;
}

.legal-toc-list a {
  color: #F5F1E6;
  text-decoration: none;
  border-bottom: 1px solid #2A2F34;
  padding-bottom: 2px;
}

.legal-toc-list a:hover {
  color: #D89A44;
  border-bottom-color: #D89A44;
}

/* ---- sections ---- */

.legal-content {
  padding: 0 0 0;
}

.legal-content section {
  padding: 44px 0;
  border-bottom: 1px solid #2A2F34;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  color: #EFF1F3;
  margin: 0 0 16px;
}

.legal-content h2 .legal-anchor-mark {
  color: #D89A44;
  font-size: 20px;
  vertical-align: middle;
  margin-right: 10px;
}

.legal-content p,
.legal-content li {
  color: #EFF1F3;
  margin: 0 0 18px;
  text-align: justify;
}

.legal-content ul {
  margin: 0 0 22px;
  padding-left: 26px;
}

.legal-content a {
  color: #D89A44;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-content strong {
  color: #F5F1E6;
  font-weight: 700;
}

/* ---- footer of legal pages: just a back-home block ---- */

.legal-footer {
  padding: 24px 0 28px;
  text-align: center;
  color: #858D96;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.legal-footer a {
  color: #D89A44;
  text-decoration: none;
  border-bottom: 1px solid #2A2F34;
  padding-bottom: 3px;
}

.legal-footer a:hover {
  border-bottom-color: #D89A44;
}

.legal-footer p {
  margin: 8px 0;
}

/* ---- responsive ---- */

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 32px;
  }

  .legal-shell {
    padding: 0 20px;
  }
}
