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

:root {
  --void: #0b0e14;
  --ember: #ff6b35;
  --cobalt: #277da1;
  --bone: #f4f1ea;
  --white: #ffffff;
  --ink: #1a1d24;
  --ash: #5f6672;
  --light-ash: #9299a3;
  --border: #e0dcd5;
  --radius: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

/* Legal page navigation */
.legal-nav {
  background: var(--void);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.legal-nav .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-nav-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legal-nav-brand:hover { color: var(--ember); }
.legal-nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ember);
  border-radius: 50%;
}
.legal-nav-back {
  color: var(--light-ash);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.legal-nav-back:hover { color: var(--ember); }

/* Legal page container */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.legal-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--void);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.legal-subtitle {
  color: var(--ash);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* Table of Contents */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}
.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--void);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc ol {
  columns: 2;
  column-gap: 2rem;
  list-style-position: inside;
  padding: 0;
  margin: 0;
}
.toc ol li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  break-inside: avoid;
}
.toc ol li a {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.toc ol li a:hover { color: var(--ember); }

/* Legal content */
.legal-content { margin-bottom: 3rem; }
.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--void);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p {
  margin-bottom: 1rem;
  color: var(--ink);
}
.legal-content ul, .legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.legal-content strong { color: var(--void); }
.legal-content a { color: var(--cobalt); }
.legal-content a:hover { color: var(--ember); }

/* Back to top */
.back-to-top {
  display: block;
  text-align: center;
  padding: 1.5rem 0;
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s;
}
.back-to-top:hover { color: var(--ember); }

/* Footer */
.legal-footer {
  background: var(--void);
  color: var(--light-ash);
  text-align: center;
  padding: 1.75rem 2rem;
  font-size: 0.85rem;
}
.legal-footer a {
  color: var(--ember);
  text-decoration: none;
  font-weight: 600;
}
.legal-footer a:hover { text-decoration: underline; }
.legal-footer p { margin-bottom: 0; }

@media (max-width: 768px) {
  .legal-container { padding: 2rem 1.25rem 1.5rem; }
  .legal-title { font-size: 1.7rem; }
  .toc ol { columns: 1; }
  .toc { padding: 1.25rem 1.5rem; }
  .legal-content h2 { font-size: 1.2rem; }
}
