:root {
  --bg: #141210;
  --panel: #211D18;
  --gold: #C9A24B;
  --cream: #F3EAD9;
  --soft: #D9CBA8;
  --ink: #141210;
  --sans: "Trebuchet MS", "Segoe UI", Verdana, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #141210;
  color: #F3EAD9;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============ LEGAL HEADER ============ */
.legal-header {
  background-color: #211D18;
  border-bottom: 3px solid #C9A24B;
  padding: 26px 0 58px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  padding-bottom: 26px;
}

.legal-brand {
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: #C9A24B;
}

.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #C9A24B;
  border: 2px solid #C9A24B;
  border-radius: 6px;
  padding: 9px 18px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-home:hover {
  background-color: #C9A24B;
  color: #141210;
}

.legal-header h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 900;
  color: #C9A24B;
  margin-bottom: 12px;
}

.legal-updated {
  color: #D9CBA8;
  font-size: 0.95rem;
}

.legal-intro {
  color: #F3EAD9;
  font-size: 1.02rem;
}

/* ============ TABLE OF CONTENTS ============ */
.legal-toc {
  background-color: #211D18;
  border: 2px solid #C9A24B;
  border-radius: 10px;
  padding: 30px 34px;
  margin: 44px 0 8px;
}

.legal-toc-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #C9A24B;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
  counter-reset: toc-item;
}

.legal-toc li {
  counter-increment: toc-item;
}

.legal-toc a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #F3EAD9;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-toc a::before {
  content: counter(toc-item, decimal-leading-zero);
  color: #C9A24B;
  font-weight: 900;
  font-size: 0.85rem;
}

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

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

.legal-page .legal-content section {
  background-color: transparent !important;
  padding: 44px 0 6px;
  border-bottom: 1px solid #2B2418;
}

.legal-page .legal-content section:last-child {
  border-bottom: none;
}

.legal-page .legal-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #C9A24B;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-page .legal-content h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #F3EAD9;
  margin: 20px 0 10px;
}

.legal-page .legal-content p {
  color: #F3EAD9;
  font-size: 0.99rem;
  margin-bottom: 16px;
}

.legal-page .legal-content ul {
  list-style: none;
  margin: 0 0 18px;
}

.legal-page .legal-content ul li {
  position: relative;
  padding-left: 26px;
  color: #F3EAD9;
  font-size: 0.97rem;
  margin-bottom: 10px;
}

.legal-page .legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 5px;
  border-radius: 2px;
  background-color: #C9A24B;
}

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

.legal-address {
  background-color: #211D18;
  border: 2px solid #C9A24B;
  border-radius: 8px;
  padding: 22px 26px;
  margin: 18px 0 4px;
}

.legal-address p {
  margin-bottom: 4px;
  color: #F3EAD9;
}

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  background-color: #211D18;
  border-top: 3px solid #C9A24B;
  padding: 30px 0 40px;
  text-align: center;
}

.legal-footer p {
  color: #D9CBA8;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.legal-footer a {
  color: #C9A24B;
  font-weight: 800;
}

.legal-footer a:hover {
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .legal-header h1 {
    font-size: 1.8rem;
  }

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

  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .legal-toc {
    padding: 24px 22px;
  }
}
