@charset "UTF-8";

:root {
  --dark: #0b1120;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --blue: #0ea5e9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
  --max-width: 900px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ============ LEGAL NAV ============ */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark);
  padding: 0;
}

.legal-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.legal-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.legal-nav .nav-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-nav .back-link {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.legal-nav .back-link:hover {
  color: #ffffff;
}

/* ============ LEGAL CONTENT ============ */
.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.legal-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc ol li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.toc ol li a {
  color: var(--accent);
  text-decoration: none;
}

.toc ol li a:hover {
  text-decoration: underline;
}

/* ============ LEGAL SECTIONS ============ */
.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  scroll-margin-top: 80px;
}

.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 18px 0 8px;
}

.legal-section p {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px 20px;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.legal-section strong {
  color: var(--dark);
  font-weight: 600;
}

.back-to-top {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top:hover {
  color: var(--accent);
}

/* ============ LEGAL FOOTER ============ */
.legal-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.legal-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-footer a {
  color: var(--accent);
  font-weight: 500;
}

.legal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-content {
    padding: 90px 16px 40px;
  }
  .legal-content h1 {
    font-size: 1.75rem;
  }
  .toc {
    padding: 18px 16px;
  }
}
