* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e8eef8;
  background:
    linear-gradient(90deg, rgba(7, 17, 34, 0.96), rgba(7, 17, 34, 0.86)),
    url("/logo-787.png");
  background-position: right -140px top -120px;
  background-repeat: no-repeat;
  background-size: min(520px, 82vw);
}

a {
  color: #ffd700;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
}

.legal-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #eef4ff;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.legal-nav a {
  color: #b8c7dd;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-nav a:hover {
  color: #ffd700;
}

.legal-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
}

.legal-card,
.legal-side {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 22, 40, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.legal-side {
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.eyebrow {
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.updated {
  color: #91a6c4;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.notice {
  border-left: 4px solid #ffd700;
  background: rgba(255, 215, 0, 0.08);
  color: #f7fbff;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.legal-card h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  color: #f7fbff;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #c7d5e8;
  line-height: 1.65;
  font-size: 1rem;
}

.legal-card ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.legal-side strong {
  display: block;
  color: #eef4ff;
  margin-bottom: 0.8rem;
}

.legal-side a {
  display: block;
  color: #b8c7dd;
  text-decoration: none;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-side a:hover {
  color: #ffd700;
}

.legal-footer {
  color: #7f93b2;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  margin-top: 2rem;
}

.legal-footer strong {
  color: #ffd700;
}

@media (max-width: 820px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-document {
    grid-template-columns: 1fr;
  }

  .legal-side {
    position: static;
    order: -1;
  }
}
