/* ==========================================================================
   SlimeSpace Legal Page Stylesheet (assets/css/legal.css)
   Reuses core dark palette variables from style.css
   ========================================================================== */

/* Header Navigation Bar */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0 24px;
  gap: 10px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.back-link svg {
  stroke: var(--accent-cyan);
  flex-shrink: 0;
}

.back-link:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-highlight);
  color: #ffffff;
  transform: translateX(-2px);
}

.legal-header .brand-badge {
  margin: 0;
  flex-shrink: 0;
}

/* Legal Content Section */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.legal-hero {
  text-align: center;
  margin: 10px 0 16px;
  padding: 0 8px;
}

.legal-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.legal-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Legal Section Cards */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.legal-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.legal-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 6px;
}

.legal-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.legal-card code {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  word-break: break-all;
  display: inline-block;
  margin: 2px 0;
}

.legal-card ul {
  margin: 4px 0 4px 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-card a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-card a:hover {
  opacity: 0.8;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 640px) {
  .legal-title {
    font-size: 2.2rem;
  }
  
  .legal-card {
    padding: 28px;
    border-radius: 20px;
  }

  .legal-card code {
    word-break: normal;
  }
}
