:root {
  --bg: #141019;
  --bg-soft: #1C1523;
  --bg-elev: #241B2E;
  --bg-elev-2: #2C2138;
  --text: #F5EFF6;
  --text-dim: #C9BFD6;
  --accent: #F472B6;
  --accent-soft: #F9A8D4;
  --accent-deep: #DB2777;
  --lavender: #C4B5FD;
  --border: #2E2438;
  --font-head: 'Baloo 2', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', 'Trebuchet MS', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #141019;
  color: #F5EFF6;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  font-weight: 700;
  color: #F5EFF6;
}

/* Header */
.legal-header {
  background: linear-gradient(120deg, #F472B6 0%, #C4B5FD 100%);
  padding: 48px 0 40px;
}

.legal-header .lh-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header .lh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #1A0E16;
  margin-bottom: 18px;
}

.legal-header .lh-brand:hover {
  color: #1A0E16;
  text-decoration: none;
}

.lh-brand .lh-cube {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-color: #1A0E16;
  box-shadow: 4px -4px 0 #DB2777;
}

.legal-header h1 {
  color: #1A0E16;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
}

.legal-header .lh-meta {
  color: #2A0E1F;
  font-weight: 700;
  margin-top: 8px;
}

/* Content */
.legal-content {
  padding: 48px 0 8px;
}

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

.legal-content p,
.legal-content li {
  color: var(--text-dim);
}

.legal-content p {
  margin-bottom: 18px;
}

.legal-intro {
  font-size: 1.1rem;
  color: #F5EFF6 !important;
}

/* Table of contents */
.legal-content .toc {
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 30px 0 40px;
}

.legal-content .toc .toc-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #F5EFF6;
  display: block;
  margin-bottom: 14px;
}

.legal-content .toc ol {
  list-style: none;
  columns: 2;
  column-gap: 28px;
}

.legal-content .toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-content .toc a {
  color: var(--text-dim);
  font-weight: 600;
}

.legal-content .toc a:hover {
  color: var(--accent);
}

/* Sections */
.legal-page .legal-content section {
  background-color: transparent !important;
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

.legal-content section h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-content section h3 {
  color: #F5EFF6;
  font-size: 1.15rem;
  margin: 22px 0 10px;
}

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

.legal-content section ul li {
  position: relative;
  padding: 6px 0 6px 26px;
}

.legal-content section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--accent);
}

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

/* Footer */
.legal-footer {
  background-color: #0E0B12;
  border-top: 4px solid #F472B6;
  padding: 36px 0 40px;
}

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

.legal-footer p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.legal-footer .lf-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.legal-footer .lf-links {
  display: flex;
  gap: 20px;
}

.legal-footer .lf-links a {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-footer .lf-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

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

  .legal-header {
    padding: 36px 0 32px;
  }
}
