/* ============ LEGAL & PROSE STYLES ============ */
.legal-main {
  position: relative;
  width: 100%;
}

.legal-prose-main {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.legal-header {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem; /* Brings the card much closer to the header */
}

/* Make the canvas a full-screen fixed background */
.node-canvas-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none;
  opacity: 0.65;
  background: transparent;
}

.page-content {
  position: relative;
  z-index: 2;
}

.prose {
  /* Glassmorphism effect to see the nodes behind the card */
  background: rgba(15, 15, 15, 0.6); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.prose h2 {
  font-family: var(--sans);
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 2.75rem 0 1rem;
  color: var(--fg);
}

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

.prose h3 {
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.65rem;
  color: var(--fg);
}

.prose p,
.prose li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-2);
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--fg);
  font-weight: 500;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .prose {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
}

/* Content Images */
.content-visual {
  margin-bottom: 3rem;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid var(--line, #333);
}
.content-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 350px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.content-visual:hover img {
  filter: grayscale(0%);
}


/* ============ SOCIAL CARDS ============ */
.legal-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.legal-social-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.legal-social-card:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.legal-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(165, 243, 161, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.legal-social-icon svg {
  width: 24px;
  height: 24px;
}

.legal-social-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-social-name {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--fg);
  font-size: var(--text-ui);
}

.legal-social-link {
  font-size: var(--text-xs);
  color: var(--fg-3);
  font-family: var(--mono);
  transition: color 0.25s ease;
}

.legal-social-card:hover .legal-social-link {
  color: var(--accent);
}

.prose .legal-social-card {
  color: inherit;
}
