:root {
  --color-bg: #0F172A;
  --color-surface: #1E293B;
  --color-primary-from: #7C3AED;
  --color-primary-to: #00D4FF;
  --color-text: #F8FAFC;
  --color-muted: #94A3B8;
  --color-border: rgba(124, 58, 237, 0.2);
  --color-border-strong: rgba(0, 212, 255, 0.34);
  --gradient-brand: linear-gradient(135deg, var(--color-primary-from), var(--color-primary-to));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  font-family: 'Noto Sans JP', sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.24), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(0, 212, 255, 0.16), transparent 32%),
    linear-gradient(180deg, var(--color-bg) 0%, #101827 48%, #0B1120 100%);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-shell {
  width: min(100% - 32px, 800px);
  margin: 0 auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.22);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.35rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-word span:first-child {
  color: #fff;
}

.brand-word span:last-child,
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-link {
  flex: 0 0 auto;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.62);
}

.home-link:hover,
.legal-footer a:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
}

.legal-main {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 42px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
}

.legal-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-meta {
  margin: 0 0 32px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-section {
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.legal-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-section + .legal-section {
  margin-top: 28px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  color: #CFFAFE;
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 12px;
  color: #DDE6F3;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #DDE6F3;
}

li + li {
  margin-top: 7px;
}

.contact-link,
.inline-link {
  color: #A5F3FC;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
}

.service-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #DDE6F3;
  font-size: 0.92rem;
}

.service-table th,
.service-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.service-table th {
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.72);
}

.service-table tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 36px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.legal-footer p {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    padding: 28px 22px;
  }

  .home-link {
    width: 100%;
    text-align: center;
  }
}
