/* Legal pages — shared prose and layout styles */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.bg-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow-x: clip;
}

.bg-dark::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.glass-effect {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(25px);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.nav-link {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #34d399);
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.page-header {
  overflow: hidden;
  isolation: isolate;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
  animation: legal-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes legal-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.legal-prose .lead {
  font-size: 1.125rem;
  line-height: 1.9;
  color: #cbd5e1;
  margin-bottom: 2rem;
  text-align: justify;
}

.legal-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  scroll-margin-top: 6rem;
}

.legal-prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-right: 1rem;
  position: relative;
}

.legal-prose h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #10b981, #34d399);
  border-radius: 2px;
}

.legal-prose p {
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.legal-prose ul {
  background: rgba(30, 41, 59, 0.35);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem 1.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
  list-style: disc;
  list-style-position: inside;
  overflow-wrap: anywhere;
}

.legal-prose li {
  margin-bottom: 0.6rem;
  color: #cbd5e1;
  line-height: 1.8;
}

.legal-prose li::marker {
  color: #10b981;
}

.legal-prose blockquote {
  background: rgba(16, 185, 129, 0.08);
  border-right: 4px solid #10b981;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.legal-prose blockquote p {
  margin-bottom: 0;
  color: #a7f3d0;
}

.legal-prose a {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: #6ee7b7;
}

.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.toc-link:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

[x-cloak] { display: none !important; }
