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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #171310;
  color: #E8E0D4;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
}

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

/* ============ LEGAL HEADER ============ */

.legal-header {
  background-color: #211B14;
  border-bottom: 1px solid #33291D;
  padding: 46px 0 42px;
}

.legal-header .legal-brand {
  display: inline-block;
  padding-left: 14px;
  border-left: 4px solid #C07A3E;
  color: #F4EFE6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-header .legal-brand:hover {
  color: #D08B4A;
}

.legal-header h1 {
  color: #F4EFE6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.15;
  margin: 24px 0 10px;
}

.legal-header .legal-updated {
  color: #8F7E64;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============ TABLE OF CONTENTS ============ */

.toc {
  background-color: #1C1710;
  border-bottom: 1px solid #33291D;
  padding: 28px 0 32px;
}

.toc-title {
  color: #F4EFE6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

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

.toc-list li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.toc-list a {
  color: #CFC5B4;
  font-size: 14px;
  text-decoration: none;
}

.toc-list a:hover {
  color: #D08B4A;
  text-decoration: underline;
}

/* ============ LEGAL CONTENT ============ */

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

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

.legal-page .legal-content section + section {
  margin-top: 48px;
}

.legal-page .legal-content section h2 {
  color: #F4EFE6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.3;
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid #33291D;
}

.legal-page .legal-content section p {
  color: #CFC5B4;
  margin: 0 0 16px;
}

.legal-page .legal-content section ul {
  color: #CFC5B4;
  margin: 0 0 16px;
  padding-left: 22px;
}

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

.legal-page .legal-content strong {
  color: #F4EFE6;
}

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

.legal-footer {
  background-color: #211B14;
  border-top: 1px solid #33291D;
  margin-top: 60px;
  padding: 36px 0 42px;
}

.legal-footer p {
  color: #8F7E64;
  font-size: 14px;
  margin: 6px 0;
}

.legal-footer a {
  color: #CFC5B4;
  text-decoration: none;
}

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

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

@media (max-width: 640px) {
  .toc-list {
    columns: 1;
  }

  .legal-header {
    padding: 34px 0 30px;
  }

  .legal-header h1 {
    font-size: 32px;
  }

  .legal-page .legal-content section h2 {
    font-size: 23px;
  }
}
