:root {
  --bg-app: #0b1532;
  --bg-card: #16294e;
  --bg-input: #1c2f58;
  --accent: #a78bfa;
  --accent-deep: #442d99;
  --text-main: #f5f6fc;
  --text-sub: #9aa6cc;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  overflow-x: hidden;
}

.stars-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 45%, rgba(255,255,255,.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 92% 80%, rgba(255,255,255,.3) 50%, transparent 100%);
  background-repeat: repeat;
  background-size: 400px 400px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.back-to-top {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-sub);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s ease;
}

.back-to-top:hover {
  color: var(--accent);
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent);
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
}

.lead {
  margin: 0 auto;
  max-width: 480px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

.legal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.legal-section p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-sub);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--accent);
}

.legal-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-sub);
  opacity: 0.8;
}

.page-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}

@media (max-width: 480px) {
  .page-header h1 { font-size: 24px; }
  .legal { padding: 24px 20px; }
}
