/* Legal pages styles - matching main site design */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.8);
  --muted: #5b6b7f;
  --text: #0f172a;
  --accent: #6366f1;
  --accent-2: #22c55e;
  --accent-3: #60a5fa;
  --accent-ring: rgba(99, 102, 241, 0.25);
}

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

html { 
  min-height: 100%;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 40%, #f7fff9 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font: 16px/1.55 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  letter-spacing: 0.01em;
  color: var(--text);
  background: transparent;
  position: relative;
  overflow-x: hidden;
}

/* Soft parallax floating shapes */
@keyframes floatA { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(12px,-10px,0)} }
@keyframes floatB { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(-14px,8px,0)} }

body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: -20%;
  right: -20%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

body::before {
  background:
    radial-gradient(40rem 30rem at 10% 10%, rgba(99,102,241,0.12), transparent 60%),
    radial-gradient(30rem 24rem at 80% 20%, rgba(96,165,250,0.12), transparent 60%),
    radial-gradient(28rem 22rem at 50% 80%, rgba(34,197,94,0.10), transparent 60%);
  animation: floatA 18s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(22rem 18rem at 20% 70%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(26rem 20rem at 75% 60%, rgba(96,165,250,0.10), transparent 60%);
  animation: floatB 22s ease-in-out infinite;
}

/* Subtle noise overlay */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 140px 140px;
}

/* Ensure content above background */
.app-header, main, .app-footer { position: relative; z-index: 1; }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  z-index: 10001;
  transition: top 0.2s ease;
}

.skip-link:focus { 
  top: 0; 
  outline: 3px solid #a5b4fc; 
  outline-offset: 2px; 
}

/* Header */
.app-header { 
  padding: 40px 20px 30px; 
  text-align: center;
  position: relative;
}

.home-link {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.home-link:hover {
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.home-link:focus {
  outline: 3px solid var(--accent-ring);
  outline-offset: 3px;
}

.app-header h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Main content */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* Report card */
.report {
  background: var(--panel);
  border: 1px solid #e9eef6;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 14px 42px rgba(2,6,23,0.06);
  line-height: 1.6;
}

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

.report h2:first-child {
  margin-top: 0;
}

.report h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

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

.report ul,
.report ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.report li {
  margin-bottom: 8px;
}

.report a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.report a:hover {
  color: var(--accent-3);
  text-decoration: underline;
}

.report strong {
  color: var(--text);
  font-weight: 700;
}

.report code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: #e11d48;
}

/* Footer */
.app-footer {
  background: transparent;
  border-top: 1px solid #e9eef6;
  padding: 36px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.app-footer p {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 14px;
}

.app-footer nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-footer a:hover {
  background: rgba(99, 102, 241, 0.10);
  color: #374151;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
}

.app-footer a:focus {
  outline: 3px solid var(--accent-ring);
  outline-offset: 3px;
  background: rgba(99,102,241,0.10);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .app-header h1 {
    font-size: 28px;
  }
  
  .report {
    padding: 24px;
  }
  
  .home-link {
    position: static;
    display: inline-flex;
    margin-bottom: 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  body::before, body::after {
    transform: none !important;
  }
}

