/* ==========================================================================
   static.css — 静的情報ページ共通スタイル
   利用規約・プライバシーポリシー・データ提供依頼・お問い合わせで共有。
   Listing chrome（パンくず／ページヘッダー）は style.css を継承。
   ========================================================================== */

.legal-page { padding-block: 48px 100px; }
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- TOC ---------- */
.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.legal-toc__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.legal-toc ol { display: flex; flex-direction: column; gap: 9px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-size: 0.84rem; }
.legal-toc a {
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}
.legal-toc a::before {
  content: counter(toc);
  font-family: var(--font-mono);
  color: var(--text-dim);
  flex-shrink: 0;
}
.legal-toc a:hover { color: var(--cyan); }

/* ---------- Prose content ---------- */
.legal-content { max-width: 720px; }
.legal-content .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.legal-content section { margin-bottom: 44px; scroll-margin-top: 90px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 { font-size: 0.98rem; font-weight: 700; margin: 22px 0 10px; color: var(--text-primary); }
.legal-content p { color: var(--text-muted); line-height: 1.9; margin-bottom: 14px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul, .legal-content ol.legal-list {
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0 0 14px;
  padding-left: 1.4em;
}
.legal-content ul { list-style: disc; }
.legal-content ol.legal-list { list-style: decimal; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text-primary); }
.legal-content a { color: var(--cyan); border-bottom: 1px dotted rgba(34, 211, 238, 0.4); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th {
  width: 160px;
  color: var(--text-dim);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.info-table td { color: var(--text-primary); }

/* ---------- Contact / data-correction form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.86rem; font-weight: 700; color: var(--text-primary); }
.form-field .form-hint { font-size: 0.76rem; color: var(--text-dim); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--cyan); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-required {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.86rem;
  margin-bottom: 20px;
}

.form-error {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #2a0f14;
  border: 1px solid #7a2330;
  color: #ffb4bd;
  font-size: 0.86rem;
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
.research-helper { border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px; background: var(--surface); }
.research-helper summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.research-helper p { font-size: .85rem; line-height: 1.8; color: var(--text-muted); margin-block: 12px; }
.research-helper textarea { width: 100%; margin-block: 12px; padding: 12px; color: var(--text-primary); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 16px; resize: vertical; }
.research-helper label { display: block; margin-top: 16px; }
