/* ==========================================================================
   MoonRise - Terms & Privacy Styling
   ========================================================================== */

.legal-page {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.legal-page .page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family-1, "Unbounded"), "SF Pro Display", system-ui, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.legal-page .page-header svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.legal-page .page-header p {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

/* Rules / Legal Content Blocks */
.legal-page .rules-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.legal-page .rules-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.legal-page .rules-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.legal-page .rules-text {
  border-radius: 16px;
  padding: 24px;
  gap: 24px;
  background: var(--card, #111628);
  display: flex;
  align-items: flex-start;
  transition: background var(--transition-duration, 0.2s);
}

.legal-page .rules-block:has(.rules-punish) .rules-text {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.legal-page .rules-num {
  font-family: var(--font-family-1, "Unbounded"), "SF Pro Display", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -0.01em;
  color: #ffffff;
  flex-shrink: 0;
  min-width: 36px;
  margin: 0;
}

.legal-page .rules-p {
  font-family: var(--font-family-2, "SF Pro Display"), system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  letter-spacing: -0.01em;
  color: var(--text-default, #f8fafc);
  margin: 0;
  word-break: break-word;
  flex: 1;
}

.legal-page .rules-p strong {
  color: #ffffff;
  font-weight: 700;
}

/* Callout / Warning box (rules-punish) */
.legal-page .rules-punish {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  gap: 10px;
  padding: 16px 24px;
  background: #25211a;
  border-top: 1px solid rgba(255, 189, 84, 0.18);
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legal-page .rules-punish-text {
  font-family: var(--font-family-2, "SF Pro Display"), system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 155%;
  letter-spacing: -0.01em;
  color: #ffbd54;
  margin: 0;
  word-break: break-word;
}

.legal-page .rules-p a,
.legal-page .rules-punish-text a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.legal-page .rules-p a:hover,
.legal-page .rules-punish-text a:hover {
  color: #818cf8;
  text-decoration: underline;
}

.legal-page .rules-separator {
  width: 100%;
  height: 1px;
  background: var(--transparent-10-w, rgba(255, 255, 255, 0.08));
  margin: 6px 0;
}

@media (max-width: 768.9px) {
  .legal-page .page-header {
    font-size: 20px;
    gap: 12px;
    margin-bottom: 18px;
  }
  .legal-page .page-header p {
    font-size: 20px;
  }
  .legal-page .rules-text {
    padding: 18px;
    gap: 16px;
  }
  .legal-page .rules-num {
    font-size: 18px;
    min-width: 28px;
  }
  .legal-page .rules-p {
    font-size: 14px;
  }
  .legal-page .rules-punish {
    padding: 14px 18px;
  }
  .legal-page .rules-punish-text {
    font-size: 13.5px;
  }
}
