/* ========================================
   Legal Pages (Terms / Privacy / Tokushoho)
   ======================================== */
:root {
  --legal-brand: #667eea;
  --legal-brand-deep: #764ba2;
  --legal-text: #1e1e1e;
  --legal-text-secondary: #4a4a4a;
  --legal-text-muted: #a0a0a0;
  --legal-border: rgba(102, 126, 234, 0.15);
  --legal-bg: #f7f8ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--legal-text);
  background: var(--legal-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--legal-border);
}

.legal-header__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2a2a4a;
  font-weight: 700;
  font-size: 1.1rem;
}

.legal-header__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Brand wordmark — same two-tone gradient as the LP header/hero lockup */
.legal-header__logo-text {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

.legal-header__logo-text .wm-moya,
.legal-header__logo-text .wm-hare {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.legal-header__logo-text .wm-moya {
  background-image: linear-gradient(160deg, #7cc4ef 0%, #4793d6 100%);
}

.legal-header__logo-text .wm-hare {
  background-image: linear-gradient(160deg, #ffd25e 0%, #f5a623 100%);
}

.legal-header__back {
  font-size: 0.85rem;
  color: var(--legal-brand);
  text-decoration: none;
  font-weight: 600;
}

.legal-header__back:hover {
  color: var(--legal-brand-deep);
  text-decoration: underline;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--legal-text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--legal-text-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--legal-border);
}

.legal-meta__row {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.legal-meta__label {
  min-width: 90px;
  font-weight: 600;
}

.legal-notice {
  padding: 16px 20px;
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--legal-text-secondary);
  margin-bottom: 32px;
}

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

.legal-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--legal-text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--legal-brand);
  display: inline-block;
}

.legal-section__body {
  font-size: 0.92rem;
  color: var(--legal-text-secondary);
}

.legal-section__body p {
  margin-bottom: 12px;
}

.legal-section__body ul,
.legal-section__body ol {
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.legal-section__body li {
  margin-bottom: 6px;
}

.legal-section__body a {
  color: var(--legal-brand);
  text-decoration: underline;
}

.legal-section__body a:hover {
  color: var(--legal-brand-deep);
}

.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-info-table th,
.legal-info-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--legal-border);
  vertical-align: top;
}

.legal-info-table th {
  width: 32%;
  font-weight: 700;
  color: var(--legal-text);
  background: rgba(102, 126, 234, 0.04);
}

.legal-info-table td {
  color: var(--legal-text-secondary);
}

.legal-info-table a {
  color: var(--legal-brand);
  text-decoration: underline;
}

.legal-info-table a:hover {
  color: var(--legal-brand-deep);
}

.legal-footer {
  padding: 32px 24px;
  background: #ffffff;
  border-top: 1px solid var(--legal-border);
  text-align: center;
}

.legal-footer__copy {
  font-size: 0.82rem;
  color: var(--legal-text-muted);
}

@media (max-width: 600px) {
  .legal-title {
    font-size: 1.4rem;
  }
  .legal-info-table th,
  .legal-info-table td {
    display: block;
    width: 100%;
    padding: 8px 12px;
  }
  .legal-info-table th {
    border-bottom: none;
    padding-bottom: 2px;
  }
}
