/* legal.css — プライバシーポリシー（読みやすさ優先。NEWS と同じ幅・線・書体でそろえる） */
.legal-page {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 760px;
  margin: 0 auto 64px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #111;
}
.legal-page .page-title { margin-bottom: 36px; text-align: center; word-spacing: 0.1em !important; }
.legal-lead {
  margin: 0 auto 32px;
  max-width: 34em;
  text-align: center;
  font-size: 0.95rem;
  line-height: 2;
  word-break: auto-phrase;
}
.legal-lead span { display: inline-block; }   /* 言葉の切れ目でだけ改行 */

/* アプリごとの見出しへのリンク */
.legal-toc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 56px;
}
.legal-toc a {
  padding: 9px 18px;
  border: 1.5px solid #111;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.legal-toc a:active { background: #111; color: #fff; }
@media (hover: hover) { .legal-toc a:hover { background: #111; color: #fff; } }

/* アプリごとの章 */
.legal-app,
.legal-common {
  margin: 0 0 64px;
  scroll-margin-top: 110px;
}
.legal-page h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0;
  padding: 0 4px 16px;
  border-bottom: 1.5px solid #111;
}
.legal-en {
  font-family: 'Liberation Mono', 'Courier New', "Noto Sans JP", monospace;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.legal-sub { font-size: 0.82rem; font-weight: 500; opacity: 0.6; }

.legal-page ol {
  list-style: none;
  counter-reset: lg;
  margin: 0;
  padding: 0;
}
.legal-page li {
  counter-increment: lg;
  display: grid;
  grid-template-columns: 2.6em 1fr;
  column-gap: 8px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}
.legal-page li::before {
  content: counter(lg, decimal-leading-zero);
  grid-row: 1 / span 3;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  padding-top: 3px;
  opacity: 0.5;
}
.legal-page h4 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 700; line-height: 1.6; }
.legal-page li p { margin: 0; font-size: 0.92rem; line-height: 1.95; }

.legal-contact {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 22px;
  border: 2px solid #111;
  border-radius: 2px;
  color: #111;
  text-decoration: none;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-contact .mail-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.legal-contact:active { background: #111; color: #fff; }
@media (hover: hover) { .legal-contact:hover { background: #111; color: #fff; } }

.legal-date { margin: 24px 4px 0; font-size: 0.82rem; opacity: 0.6; text-align: right; }

@media (max-width: 600px) {
  .legal-lead { font-size: 0.9rem; line-height: 1.9; }
  .legal-en { font-size: 1.1rem; }
  .legal-page li { grid-template-columns: 2.2em 1fr; padding: 18px 2px; }
  .legal-page li p { font-size: 0.88rem; }
  .legal-app, .legal-common { scroll-margin-top: 96px; }
}
