/* ============================================================
   GlowUp Laces — Legal Pages Stylesheet
   Shared by privacy.html and terms-of-service.html
   Dark warm theme · Rescue Orange accent
   ============================================================ */

.legal-page {
  background-color: #12100F;
  color: #F6EFE6;
}

:root {
  --legal-bg: #12100F;
  --legal-bg-2: #1A1613;
  --legal-surface: #201B17;
  --legal-border: #332A22;
  --legal-border-strong: #4A3A2B;
  --legal-text: #F6EFE6;
  --legal-muted: #CFC4B4;
  --legal-dim: #A99C8A;
  --legal-accent: #F97316;
  --legal-accent-deep: #EA580C;
  --legal-accent-light: #FDBA74;
  --legal-accent-bg: #2B1205;
}

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   LEGAL HEADER (div, solid background)
   ============================================================ */

.legal-header {
  background: linear-gradient(150deg, #2B1205 0%, #1A1613 100%);
  border-bottom: 3px solid #F97316;
  padding: 64px 0 56px;
}

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

.legal-header .crumb {
  display: inline-block;
  background-color: #2B1205;
  color: #FDBA74;
  border: 1px solid #4A3A2B;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.legal-header h1 {
  color: #F6EFE6;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
}

.legal-header .lede {
  color: #CFC4B4;
  max-width: 760px;
  font-size: 1.08rem;
}

/* ============================================================
   LEGAL LAYOUT
   ============================================================ */

.legal-content {
  padding: 56px 0 24px;
}

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

/* Table of contents */
.toc {
  background-color: #201B17;
  border: 1px solid #332A22;
  border-left: 4px solid #F97316;
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 44px;
}

.toc h2 {
  color: #FDBA74;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.toc ol li {
  counter-increment: toc;
}

.toc a {
  color: #CFC4B4;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.toc a:hover {
  color: #F97316;
}

.toc ol li::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero) "  ";
  color: #F97316;
  font-weight: 700;
}

.toc ol {
  counter-reset: toc;
}

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

.legal-section h2 {
  color: #FDBA74;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #332A22;
}

.legal-section h3 {
  color: #F6EFE6;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 22px 0 10px;
}

.legal-section p {
  color: #CFC4B4;
  margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 18px 24px;
  color: #CFC4B4;
}

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

.legal-section strong {
  color: #F6EFE6;
}

.legal-section a {
  color: #FDBA74;
}

.legal-section a:hover {
  color: #F97316;
}

/* Scope isolation: prevent any inherited section background */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #1A1613;
  border-top: 3px solid #F97316;
  padding: 32px 0;
}

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

.legal-footer .foot-brand {
  color: #F6EFE6;
  font-weight: 700;
}

.legal-footer .foot-brand span {
  color: #F97316;
}

.legal-footer .foot-links {
  display: flex;
  gap: 22px;
}

.legal-footer a {
  color: #CFC4B4;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #FDBA74;
}

.legal-footer .foot-copy {
  width: 100%;
  color: #A99C8A;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

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