/* Lustify Legal Pages — Shared Stylesheet */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #0a0a0b;
  color: #d4d4d8;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background gradients */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: rgba(192, 38, 211, 0.08);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: rgba(147, 51, 234, 0.08);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d946ef;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.back:hover { opacity: 0.8; }

.meta {
  font-size: 13px;
  color: #71717a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Typography */
h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fafafa;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 18px;
  color: #a1a1aa;
  margin-bottom: 48px;
  line-height: 1.6;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fafafa;
  margin-top: 48px;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e4e4e7;
  margin-top: 32px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #a1a1aa;
}

strong { color: #e4e4e7; }

a { color: #d946ef; }
a:hover { text-decoration: underline; }

/* Lists */
ul, ol {
  margin: 16px 0 24px 20px;
}
li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #a1a1aa;
}
li strong { color: #e4e4e7; }

/* Callouts */
.callout {
  border-radius: 28px;
  padding: 24px;
  margin: 32px 0;
  border: none;
}
.callout h2, .callout h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
}
.callout p {
  font-size: 14px;
}
.callout p:last-child {
  margin-bottom: 0;
}

.callout-red {
  background: rgba(239, 68, 68, 0.05);
}
.callout-red h2, .callout-red h3 { color: #f87171; }

.callout-green {
  background: rgba(34, 197, 94, 0.04);
}
.callout-green h2, .callout-green h3 { color: #4ade80; }

.callout-amber {
  background: rgba(245, 158, 11, 0.04);
}
.callout-amber h2, .callout-amber h3 { color: #fbbf24; }

.callout-brand {
  background: rgba(217, 70, 239, 0.04);
}
.callout-brand h2, .callout-brand h3 { color: #d946ef; }

/* Highlight text */
.warn { color: #ef4444; font-weight: 600; }
.warn-amber { color: #f59e0b; font-weight: 600; }
.muted { color: #71717a; }

/* Footer navigation */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-nav a {
  color: #71717a;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.legal-nav a:hover { color: #d946ef; }
.legal-nav a.active { color: #d946ef; font-weight: 600; }

/* Index page specific */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 540px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
}
.legal-card {
  display: block;
  padding: 16px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.legal-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}
.legal-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.legal-card-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.legal-card-icon svg {
  width: 20px;
  height: 20px;
  color: #a855f7;
  stroke-width: 1.5;
}
.legal-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fafafa;
  margin: 0;
}
.legal-card p {
  font-size: 13px;
  color: #52525b;
  margin: 0;
  line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.08) transparent; }

/* Responsive */
@media (max-width: 640px) {
  .container { padding: 40px 16px 60px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .subtitle { font-size: 16px; }
}

/* Anchor highlight animation */
.anchor-highlight {
  animation: anchorFade 2s ease-out;
  border-radius: 8px;
}
@keyframes anchorFade {
  0% { background: rgba(217, 70, 239, 0.1); }
  100% { background: transparent; }
}

/* Scroll margin for anchored sections */
[id] {
  scroll-margin-top: 24px;
}
