* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 28%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 74%, rgba(142, 216, 255, 0.38), transparent 24rem),
    linear-gradient(
      180deg,
      #06142f 0%,
      #172d63 18%,
      #6b4f9c 38%,
      #f28573 58%,
      #ffd685 76%,
      #8ed8ff 100%
    );
  color: #10213d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 calc((100% - 100vw) / 2) 56px;
  padding: 12px max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 20, 46, 0.72);
  backdrop-filter: blur(18px);
}

.legal-header img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.legal-header a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  text-decoration: none;
}

.legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(22px, 5vw, 42px);
  box-shadow: 0 24px 70px rgba(16, 33, 61, 0.18);
}

.legal-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(135deg, rgba(255, 214, 133, 0.42), rgba(142, 216, 255, 0.36));
  content: '';
}

.legal-card > * {
  position: relative;
}

h1 {
  margin: 0 0 10px;
  max-width: 780px;
  color: #10213d;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
}

h2 {
  margin: 28px 0 8px;
  color: #1d3b6f;
  font-size: 1.25rem;
}

p,
li {
  color: #40536f;
  font-size: 1rem;
  line-height: 1.65;
}

ul {
  padding-left: 20px;
}

.updated {
  margin: 0 0 26px;
  color: #1db36b;
  font-weight: 800;
}

.legal-footer {
  margin-top: 24px;
  color: #10213d;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 680px) {
  .legal-header {
    margin-bottom: 34px;
  }

  .legal-header img {
    width: 52px;
    height: 52px;
  }

  .legal-header a {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.9rem;
  }
}
