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

html, body { margin: 0; padding: 0; }

.legal-page {
  background-color: #1B1220;
  color: #D9CDBF;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a { color: #C9A227; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Legal header */
.legal-header {
  background-color: #261A2E;
  border-top: 3px solid #A63446;
  border-bottom: 1px solid #3A2440;
  padding: 56px 24px 44px;
  text-align: center;
}
.legal-header .legal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #C9A227;
  font-size: 13px;
  display: block;
  margin-bottom: 14px;
}
.legal-header h1 {
  color: #FAF5EC;
  font-size: 40px;
  margin: 0 0 12px;
}
.legal-header p {
  color: #D9CDBF;
  margin: 0;
  font-size: 15px;
}

/* Table of contents */
.toc {
  background-color: #261A2E;
  border: 1px solid #3A2440;
  padding: 26px 28px;
  margin: 40px 0;
}
.toc-title {
  color: #C9A227;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 16px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { color: #EFE6DC; }
.toc a:hover { color: #C9A227; }

/* Content */
.legal-content { padding: 20px 0 10px; }
.legal-content .legal-section {
  margin-bottom: 40px;
  padding: 30px 0;
  border-bottom: 1px solid #3A2440;
}
.legal-content .legal-section:last-child { border-bottom: none; }

.legal-content h2 {
  color: #C05268;
  font-size: 26px;
  margin: 0 0 16px;
  padding-top: 8px;
}

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

.legal-content p {
  color: #D9CDBF;
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #D9CDBF;
}
.legal-content li { margin-bottom: 8px; }

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

/* Legal footer */
.legal-footer {
  margin-top: 40px;
  padding: 40px 24px;
  background-color: #140E19;
  border-top: 1px solid #3A2440;
  text-align: center;
  position: relative;
  z-index: 1;
}
.legal-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.legal-footer nav a { color: #EFE6DC; }
.legal-footer nav a:hover { color: #C9A227; }
.legal-footer .legal-line {
  color: #D9CDBF;
  font-size: 13px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-footer .back-home {
  display: inline-block;
  margin-bottom: 18px;
  color: #C9A227;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .toc ul { columns: 1; }
  .legal-header h1 { font-size: 30px; }
}
