:root {
  --void: #151221;
  --ink: #EDEAF6;
  --muted: #B8A9E8;
  --iris: #6D5BD0;
  --plum: #211B33;
  --line: rgba(109, 91, 208, 0.35);
  --maxw: 860px;
}

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

body {
  font-family: "Inter", "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  background-color: #151221;
  color: #EDEAF6;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #6D5BD0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Scope isolation: legal content sections stay transparent ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal page header (block element, NOT a section) ---------- */
.legal-header {
  background-color: #6D5BD0;
  padding: 70px 24px 56px;
  text-align: center;
}

.legal-header h1 {
  color: #211B33;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-header .legal-meta {
  color: #211B33;
  font-size: 15px;
  margin-top: 14px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Layout ---------- */
.legal-content {
  padding: 60px 0 40px;
}

.legal-content .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents */
.toc {
  background-color: #211B33;
  border-top: 3px solid #6D5BD0;
  border-radius: 4px;
  padding: 30px 34px;
}

.toc h2 {
  color: #B8A9E8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc ul {
  list-style: none;
}

.toc ul li {
  margin-top: 8px;
}

.toc ul li a {
  color: #EDEAF6;
  font-size: 15px;
}

.toc ul li a::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background-color: #6D5BD0;
  transform: rotate(45deg);
}

.toc ul li a:hover {
  color: #B8A9E8;
}

/* Legal sections */
.legal-content section {
  margin-top: 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

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

.legal-content h2 {
  color: #EDEAF6;
  font-size: 27px;
  font-weight: 800;
  margin-bottom: 16px;
  scroll-margin-top: 90px;
}

.legal-content h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  background-color: #B8A9E8;
  transform: rotate(45deg);
}

.legal-content p {
  color: #B8A9E8;
  margin-top: 14px;
}

.legal-content ul {
  margin-top: 14px;
  padding-left: 22px;
  color: #B8A9E8;
}

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

.legal-content strong {
  color: #EDEAF6;
  font-weight: 700;
}

/* Back-home band */
.legal-back {
  margin-top: 46px;
  padding: 34px;
  background-color: #6D5BD0;
  border-radius: 6px;
  text-align: center;
}

.legal-back p {
  color: #211B33;
  font-size: 17px;
}

.legal-back .btn {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 30px;
  background-color: #211B33;
  color: #EDEAF6;
  font-weight: 700;
  border-radius: 6px;
}

.legal-back .btn:hover {
  background-color: #2A2340;
  text-decoration: none;
}

/* Legal footer */
.legal-footer {
  background-color: #151221;
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  text-align: center;
}

.legal-footer .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer p {
  color: #B8A9E8;
  font-size: 14px;
}

.legal-footer a {
  color: #EDEAF6;
}

/* Responsive */
@media (max-width: 680px) {
  .legal-header h1 {
    font-size: 30px;
  }

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