/* === HILLSTOP — LEGAL PAGES STYLESHEET === */
/* Used by: privacy.html, terms-of-service.html */

:root {
  --bg-primary: #14141e;
  --bg-secondary: #1e1e32;
  --bg-card: #252542;
  --accent-primary: #00d4aa;
  --accent-primary-dark: #00b894;
  --text-primary: #f0f0f8;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --border: #333350;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.legal-header {
  padding: 120px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,212,170,0.05) 0%, transparent 100%);
}
.legal-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.legal-header .effective-date {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-content h2 {
  font-size: 26px;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.legal-content h3 {
  font-size: 20px;
  color: var(--text-secondary);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.legal-content ul, .legal-content ol {
  margin: 8px 0 20px 24px;
  color: var(--text-secondary);
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal-content a {
  color: var(--accent-primary);
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-content strong {
  color: var(--text-primary);
}

/* Table of Contents */
nav.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
}
nav.toc h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding: 0;
  border: none;
}
nav.toc ol {
  list-style: decimal;
  margin: 0;
  padding-left: 20px;
}
nav.toc ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}
nav.toc ol li a {
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}
nav.toc ol li a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Back to top link */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 40px;
  transition: color 0.2s ease;
}
.back-to-top:hover {
  color: var(--accent-primary-dark);
  text-decoration: none;
}

/* Legal footer */
.legal-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  margin-top: 60px;
}
.legal-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}
.legal-footer a:hover {
  text-decoration: underline;
}
.legal-footer p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header h1 { font-size: 30px; }
  .legal-content h2 { font-size: 22px; }
  nav.toc { padding: 20px 20px; }
}
