.legal-page {
  min-height: 100vh;
  background-color: #030d1f;
  color: #f0f4ff;
  font-family: var(--font-display, 'Inter', system-ui, sans-serif);
}

.legal-container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 12vw, 9rem);
}

.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background: radial-gradient(circle at top left, rgba(33, 176, 255, 0.45), transparent 65%);
}

.legal-hero::after {
  opacity: 0.35;
  background: radial-gradient(circle at bottom right, rgba(255, 122, 54, 0.45), transparent 60%);
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(122, 148, 187, 0.32);
  background: rgba(8, 24, 47, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(228, 238, 255, 0.85);
}

.legal-title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #f8f9fe;
}

.legal-intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(214, 229, 255, 0.78);
}

.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(150, 182, 216, 0.7);
}

.legal-section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 6rem);
}

.legal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(8, 24, 47, 0.85), rgba(3, 13, 31, 0.95) 65%);
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}

.legal-section .legal-container {
  position: relative;
  z-index: 1;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
}


@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.legal-card {
  border-radius: 1.75rem;
  border: 1px solid rgba(122, 148, 187, 0.24);
  background: rgba(5, 20, 41, 0.92);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 32px 60px rgba(2, 8, 23, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.legal-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8f9fe;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(214, 229, 255, 0.78);
}

.legal-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.legal-card li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.legal-bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, #21b0ff, #ff7a36);
  flex-shrink: 0;
}

.legal-contact {
  position: relative;
  padding-block: clamp(4rem, 10vw, 6rem);
}

.legal-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(255, 122, 54, 0.38), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.legal-contact-card {
  position: relative;
  border-radius: 2rem;
  border: 1px solid rgba(122, 148, 187, 0.26);
  background: rgba(4, 18, 38, 0.94);
  padding: clamp(2.5rem, 5vw, 3rem);
  box-shadow: 0 40px 70px rgba(2, 8, 23, 0.4);
}

.legal-contact-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8f9fe;
}

.legal-contact-card p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(214, 229, 255, 0.78);
}

.legal-contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(220, 234, 255, 0.82);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: rgba(214, 229, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.legal-back-link:hover {
  color: rgba(248, 249, 254, 0.95);
}

.legal-footer {
  padding-block: 3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.85rem;
  color: rgba(150, 182, 216, 0.7);
}

.legal-footer a {
  color: rgba(137, 213, 255, 0.85);
  text-decoration: none;
}

.legal-footer a:hover {
  color: rgba(233, 246, 255, 1);
}

@media (max-width: 768px) {
  .legal-badge {
    font-size: 0.65rem;
    padding: 0.6rem 1.25rem;
    letter-spacing: 0.2em;
  }

  .legal-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .legal-card {
    border-radius: 1.5rem;
  }

  .legal-contact-card {
    border-radius: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-hero::before,
  .legal-hero::after,
  .legal-contact::before {
    animation: none;
  }
}