/* ============================================================
   FightTown — shared legal stylesheet (privacy + terms)
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #150D08;
  color: #FBF0E6;
}

:root {
  --bg: #150D08;
  --text: #FBF0E6;
  --flame: #F25C05;
  --honey: #F7B267;
  --char: #5C2A10;
  --char-deep: #2A0C02;
  --hairline: #3A2413;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.legal-page body {
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scope isolation ---------- */

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

/* ---------- Legal header ---------- */

.legal-header {
  background: linear-gradient(135deg, #F25C05 0%, #F7B267 100%);
  border-bottom: 4px solid var(--char);
}

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

.legal-home-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--char);
  background-color: var(--honey);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.legal-home-link:hover {
  text-decoration: none;
  background-color: var(--char);
  color: #FBF0E6;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 50px;
  line-height: 1.05;
  color: #150D08;
  margin-bottom: 14px;
}

.legal-header-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--char-deep);
}

/* ---------- Content layout ---------- */

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

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

/* ---------- Table of contents ---------- */

.legal-toc {
  background-color: var(--char);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--flame);
  border-radius: 8px;
  padding: 26px 28px;
  margin-bottom: 48px;
}

.legal-toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FBF0E6;
  margin-bottom: 14px;
}

.legal-toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}

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

.legal-toc-list a {
  color: var(--honey);
  font-size: 14px;
  font-weight: 500;
}

.legal-toc-list a:hover {
  color: var(--flame);
  text-decoration: none;
}

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

.legal-content section {
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.legal-content section:last-of-type {
  border-bottom: none;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--honey);
  margin-bottom: 14px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: #FBF0E6;
  margin: 22px 0 10px;
}

.legal-content p {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: var(--text);
  margin: 0 0 18px 22px;
  padding: 0;
}

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

.legal-content a {
  color: var(--flame);
}

.legal-content a:hover {
  color: var(--honey);
}

.legal-content strong {
  color: var(--honey);
  font-weight: 700;
}

/* ---------- Legal footer ---------- */

.legal-footer {
  background-color: var(--bg);
  border-top: 3px solid var(--flame);
  padding: 40px 24px 44px;
  text-align: center;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-footer a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.legal-footer a:hover {
  color: var(--flame);
  text-decoration: none;
}

.legal-footer-divider {
  color: var(--char);
  margin: 0 12px;
}

.legal-footer p {
  color: var(--honey);
  font-size: 14px;
  margin-top: 18px;
  line-height: 1.8;
}

/* ---------- Responsive ---------- */

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

  .legal-toc-list {
    grid-template-columns: 1fr;
  }

  .legal-content h2 {
    font-size: 25px;
  }
}
