/* web/legal-styles.css */

:root {
  --primary: #7C4DFF;
  --primary-light: #9c6fff;
  --accent: #00E5FF;
  --bg: #0a0a14;
  --surface: #12121e;
  --card: #1a1a2e;
  --border: rgba(124, 77, 255, 0.15);
  --text: #e8e8f0;
  --text-muted: #9090a8;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #f44336;
  --gradient: linear-gradient(135deg, #7C4DFF 0%, #00E5FF 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter',
               'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.header-logo-text {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary-light);
}

.header-nav a.danger { color: #ef9a9a; }
.header-nav a.danger:hover { color: #ef5350; }

/* ── HERO ── */
.hero {
  background: linear-gradient(180deg, rgba(124,77,255,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,77,255,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--primary-light);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── PAGE LAYOUT ── */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SIDEBAR / TOC ── */
.toc {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.toc-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.toc-item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  margin-bottom: 2px;
  border-left: 2px solid transparent;
}

.toc-item:hover,
.toc-item.active {
  color: var(--primary-light);
  background: rgba(124,77,255,0.08);
  border-left-color: var(--primary);
}

/* ── CONTENT ── */
.content {
  padding: 48px 48px 96px;
  max-width: 780px;
}

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

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(124,77,255,0.15);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

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

.section li { margin-bottom: 8px; line-height: 1.7; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
}

.card-warning {
  background: rgba(255,152,0,0.05);
  border-color: rgba(255,152,0,0.25);
}

.card-danger {
  background: rgba(244,67,54,0.05);
  border-color: rgba(244,67,54,0.25);
}

.card-info {
  background: rgba(0,229,255,0.03);
  border-color: rgba(0,229,255,0.15);
}

.card-success {
  background: rgba(76,175,80,0.05);
  border-color: rgba(76,175,80,0.2);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.card-warning .card-title { color: #FFB74D; }
.card-danger  .card-title { color: #EF9A9A; }
.card-info    .card-title { color: #80DEEA; }
.card-success .card-title { color: #A5D6A7; }

/* ── MISC ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.highlight {
  background: rgba(124,77,255,0.1);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
}

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .content { padding: 32px 20px 64px; }
  .header-nav { display: none; }
}