.legal-page {
  background: #f6f6f8;
  color: #1d1d24;
}

.legal-header {
  background: #fff;
  border-bottom: 1px solid #e6e6ee;
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.legal-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, #ff3b30, #c5150e);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  padding-bottom: 2px;
}

.legal-back {
  font-size: 13px;
  color: #6d6d79;
}

.legal-back:hover {
  color: var(--brand);
}

.legal-main {
  padding: 36px 0 60px;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  border: 1px solid #e6e6ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 20, 35, 0.05);
}

.legal-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.legal-card h1 {
  margin-top: 8px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.legal-updated {
  margin-top: 10px;
  font-size: 12px;
  color: #8a8a96;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.72;
  color: #43434d;
}

.legal-card ul {
  padding-left: 22px;
  list-style: disc;
}

.legal-card li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 28px !important;
  padding: 14px 16px;
  border: 1px solid #ffd8d4;
  border-radius: 10px;
  background: #fff5f3;
  font-size: 12px !important;
  line-height: 1.6 !important;
  color: #7a2a24 !important;
}

.legal-footer {
  padding: 20px 0 36px;
  text-align: center;
  font-size: 11.5px;
  color: #8a8a96;
}

.legal-footer a {
  color: #646470;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .legal-main {
    padding-top: 20px;
  }

  .legal-header .container {
    min-height: 60px;
  }
}
