/* =============================================================================
   GOLDSIGNAL.UK — EDITORIAL LEGAL STYLESHEET (TERMS & PRIVACY)
   Clean reading typography, sticky TOC, reading progress indicator
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #06080e;
  --bg-surface: rgba(14, 18, 28, 0.7);
  --gold-primary: #e6ca65;
  --gold-champagne: #f3e5ab;
  --gold-border: rgba(230, 202, 101, 0.2);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-hairline: rgba(255, 255, 255, 0.08);
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  min-height: 100vh;
  position: relative;
}

/* Reading Progress Bar */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #e6ca65, #f3e5ab);
  transition: width 0.1s ease;
}

/* Header */
.legal-nav {
  height: 80px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  background: rgba(6, 8, 14, 0.9);
  backdrop-filter: blur(20px);
  z-index: 100;
}

.legal-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 120px 48px;
}

.legal-header {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 32px;
}

.legal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-title {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-meta-row {
  display: flex;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

/* 2-Column Content Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

/* Sticky TOC */
.legal-toc-aside {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 16px;
}

.legal-toc-aside::-webkit-scrollbar {
  width: 3px;
}

.legal-toc-aside::-webkit-scrollbar-thumb {
  background: var(--border-hairline);
  border-radius: 2px;
}

.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-link:hover, .toc-link.active {
  color: #fff;
  border-left-color: var(--gold-primary);
  background: rgba(230, 202, 101, 0.05);
}

/* Content Body */
.legal-body {
  max-width: 760px;
  line-height: 1.8;
  font-size: 15px;
}

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-section p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-section ul {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-callout {
  background: rgba(230, 202, 101, 0.05);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--gold-champagne);
}

.legal-callout strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

/* Footer */
.legal-footer {
  border-top: 1px solid var(--border-hairline);
  margin-top: 80px;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc-aside {
    display: none;
  }
  .legal-shell {
    padding: 40px 24px;
  }
  .legal-nav {
    padding: 0 24px;
  }
}
