:root {
  --legal-bg-deep: #041018;
  --legal-bg-mid: #0a2438;
  --legal-navy: #0c4a6e;
  --legal-teal: #0f766e;
  --legal-sea: #14b8a6;
  --legal-accent: #2dd4bf;
  --legal-accent-soft: #99f6e4;
  --legal-text: #f0f9ff;
  --legal-text-muted: #94a3b8;
  --legal-glass: rgba(255, 255, 255, 0.04);
  --legal-glass-border: rgba(148, 210, 255, 0.22);
}

*,
*::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;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(20, 78, 111, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(15, 118, 110, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, #041018 0%, #0a2438 45%, #0d3348 100%);
}

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

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

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

.legal-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--legal-glass-border);
  background: rgba(4, 16, 24, 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-navy), var(--legal-teal) 52%, var(--legal-sea));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.38);
  color: white;
}

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

.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-accent-soft);
  border-color: rgba(45, 212, 191, 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(15, 118, 110, 0.1) 0%,
    rgba(8, 32, 52, 0.98) 45%,
    rgba(12, 74, 110, 0.08) 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-accent-soft);
  border-left: 3px solid var(--legal-sea);
  padding-left: 0.75rem;
}

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

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

.legal-card a:hover {
  color: var(--legal-accent-soft);
}

.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;
  }
}
