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

body {
  margin: 0;
  background-color: #16100E;
  color: #F4EDE6;
  font-size: 16px;
  line-height: 1.75;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-header {
  background-color: #221512;
  border-bottom: 4px solid #C0392B;
  padding: 48px 24px 40px;
}

.legal-topbar {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-wordmark {
  color: #F0C9B8;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  text-decoration: none;
}

.legal-tag {
  color: #F0C9B8;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.legal-header h1 {
  color: #F4EDE6;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-subtitle {
  color: #F0C9B8;
  font-size: 15px;
}

.toc {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  background-color: transparent;
}

.toc-title {
  color: #F0C9B8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  padding: 0;
}

.toc li {
  border-top: 1px solid #3A2A24;
}

.toc li:first-child {
  border-top: 0;
}

.toc a {
  display: block;
  padding: 12px 0;
  color: #F4EDE6;
  text-decoration: none;
}

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

.legal-content {
  background-color: #16100E;
}

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

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

.legal-content section {
  padding: 36px 0 8px;
  border-top: 1px solid #3A2A24;
}

.legal-content section:first-of-type {
  border-top: 0;
}

.legal-content h2 {
  color: #F4EDE6;
  font-size: 26px;
  margin-bottom: 16px;
}

.legal-content h3 {
  color: #F0C9B8;
  font-size: 18px;
  margin: 20px 0 10px;
}

.legal-content p {
  color: #F4EDE6;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: #F4EDE6;
  margin: 0 0 16px 24px;
}

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

.legal-content a {
  color: #F0C9B8;
}

.legal-content strong {
  color: #F4EDE6;
}

.legal-footer {
  background-color: #221512;
  border-top: 1px solid #C0392B;
  text-align: center;
  padding: 32px 24px;
}

.legal-footer p {
  color: #F0C9B8;
  font-size: 14px;
  margin-bottom: 6px;
}

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

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

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

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