/* Scene — Legal pages (Privacy Policy, etc.) */

:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --accent: #00f5d4;
  --bg: #06060b;
  --text: #f4f4f8;
  --text-muted: rgba(244, 244, 248, 0.68);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --content-w: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Nav */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(6, 6, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.legal-nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.legal-nav-back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legal-nav-back:hover {
  color: var(--text);
}

/* Layout */
.legal-wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Content */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: rgba(244, 244, 248, 0.9);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content li strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  word-break: break-word;
}

.legal-note {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-contact {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.04));
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: var(--radius);
}

.legal-contact h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legal-contact p {
  margin-bottom: 0.5rem;
}

.legal-footer {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244, 244, 248, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
