/* ============================================
   LEGAL PAGES (Terms & Privacy) STYLES
   ============================================ */

.legal-page {
  background: var(--color-black);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grid Background */
.legal-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

/* Gradient Overlay */
.legal-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 10%, rgba(217, 119, 6, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 90%, rgba(81, 209, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Background Decorations */
.legal-bg-decorations {
  display: none;
}

/* Glows */
.legal-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}

.legal-glow-1 {
  width: 700px;
  height: 700px;
  top: -250px;
  right: -150px;
  background: rgba(217, 119, 6, 0.12);
}

.legal-glow-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: rgba(81, 209, 255, 0.06);
}

/* Main Content */
.legal-main {
  position: relative;
  z-index: 1;
  padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-xl);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
.legal-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.legal-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--border-radius-full);
  color: var(--color-orange);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-sm);
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Content */
.legal-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  position: relative;
}

.legal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-orange) 0%,
    rgba(217, 119, 6, 0.1) 100%
  );
}

/* Sections */
.legal-section {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.legal-section p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  margin: var(--spacing-sm) 0;
  padding-left: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
}

.legal-section ul li strong {
  color: var(--color-text);
}

.legal-section a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--color-orange-warm);
}

/* Navigation Link */
.legal-nav {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
}

.legal-nav-link:hover {
  background: rgba(217, 119, 6, 0.1);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.legal-nav-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.legal-nav-link:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-main {
    padding: calc(70px + var(--spacing-md)) var(--spacing-sm) var(--spacing-lg);
  }

  .legal-content {
    padding: var(--spacing-md);
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section h3 {
    font-size: 1.05rem;
  }

  .legal-glow-1 {
    width: 350px;
    height: 350px;
  }

  .legal-glow-2 {
    width: 250px;
    height: 250px;
  }
}

