/* =========================================================
   Buy More Get More Ltd. — Shared Legal Stylesheet
   Loaded by privacy.html and terms-of-service.html ONLY
   ========================================================= */

:root {
  --bg: #0B0E14;
  --bg-deep: #07090F;
  --surface: #121722;
  --surface-2: #161C29;
  --surface-3: #1B2332;
  --border: #253044;
  --border-soft: #1E2838;
  --text: #E8EAED;
  --text-muted: #9AA3B2;
  --gold: #FACC15;
  --gold-bright: #FDE047;
  --gold-deep: #A16207;
  --gold-dark: #854D0E;
  --on-gold: #0B0E14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* The legal body background is defined here because legal pages
   load only this stylesheet, never style.css. */
.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scope isolation: keep any section inside legal content transparent
   so no shared-id rule from the homepage can bleed through. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-page a:hover {
  color: #FDE047;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #E8EAED;
}

/* ============ LEGAL HEADER ============ */
.legal-header {
  background: linear-gradient(180deg, #1B2332 0%, #121722 100%);
  border-bottom: 1px solid #253044;
  padding: 68px 0 52px;
}

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

.legal-header .legal-crumb {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FACC15;
  margin-bottom: 16px;
}

.legal-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #E8EAED;
  margin-bottom: 14px;
}

.legal-header .legal-meta {
  color: #9AA3B2;
  font-size: 0.92rem;
}

/* ============ LEGAL CONTENT ============ */
.legal-content {
  padding: 52px 0 40px;
}

.legal-content .container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-body h2 {
  font-size: 1.45rem;
  margin: 42px 0 14px;
  padding-top: 10px;
  color: #E8EAED;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
  color: #E8EAED;
}

.legal-body p {
  color: #9AA3B2;
  margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 22px;
  color: #9AA3B2;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body strong {
  color: #E8EAED;
  font-weight: 700;
}

.legal-body a {
  color: #FACC15;
  font-weight: 600;
}

/* ============ TABLE OF CONTENTS ============ */
.legal-toc {
  position: sticky;
  top: 90px;
  background-color: #121722;
  border: 1px solid #253044;
  border-radius: 10px;
  padding: 22px;
}

.legal-toc .toc-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FACC15;
  margin-bottom: 16px;
}

.legal-toc nav ul {
  list-style: none;
  margin: 0;
}

.legal-toc nav li {
  margin-bottom: 2px;
}

.legal-toc nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: #9AA3B2;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.legal-toc nav a:hover {
  background-color: #1B2332;
  color: #FACC15;
}

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  background-color: #07090F;
  border-top: 1px solid #253044;
  padding: 28px 0 24px;
}

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

.legal-footer .back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FACC15;
  font-weight: 700;
}

.legal-footer .back-home:hover {
  color: #FDE047;
}

.legal-footer .footer-company {
  color: #6B7688;
  font-size: 0.84rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}
