:root {
  --legal-bg-deep: #020617;
  --legal-bg-mid: #0b1733;
  --legal-violet: #2563eb;
  --legal-violet-bright: #60a5fa;
  --legal-cyan: #22d3ee;
  --legal-text: #f1f5f9;
  --legal-text-muted: #94a3b8;
  --legal-glass: rgba(255, 255, 255, 0.04);
  --legal-glass-border: rgba(96, 165, 250, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Outfit', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--legal-text);
  background: var(--legal-bg-deep);
}

.legal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.legal-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.legal-bg-orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  top: -120px;
  left: -80px;
}

.legal-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
  bottom: -60px;
  right: -40px;
}

.legal-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--legal-glass-border);
  background: rgba(6, 6, 15, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
}

.legal-header__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--legal-text);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
}

.legal-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--legal-violet), var(--legal-cyan));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.45);
}

.legal-logo-mark svg {
  width: 18px;
  height: 18px;
  color: white;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--legal-glass-border);
  color: var(--legal-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.legal-back:hover {
  color: var(--legal-violet-bright);
  border-color: rgba(167, 139, 250, 0.4);
  background: var(--legal-glass);
}

.legal-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-card {
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(13, 11, 31, 0.98) 45%,
    rgba(8, 145, 178, 0.06) 100%
  );
  border: 1px solid var(--legal-glass-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.legal-card h1 {
  margin: 0 0 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 800;
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--legal-text-muted);
}

.legal-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--legal-violet-bright);
  border-left: 3px solid var(--legal-violet);
  padding-left: 0.75rem;
}

.legal-card p,
.legal-card li {
  color: var(--legal-text-muted);
}

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

.legal-card a:hover {
  color: var(--legal-violet-bright);
}

.legal-card ol,
.legal-card ul {
  padding-left: 1.35rem;
}

.legal-card li + li {
  margin-top: 0.35rem;
}

.legal-footer {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--legal-text-muted);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 1.5rem 1.15rem;
  }

  .legal-card h1 {
    font-size: 1.4rem;
  }
}
