/* The seven old pages in the v2 frame (owner, 2026-11-02; v2-core/src/server/legacy-pages.js). Their text is the file's own,
   its classes too (about.html's .card-grid, faq.html's .faq-item and the others): drawn here in v2's colours and type, inside
   one white sheet on v2's grey, as wide as a text is easy to read. The old pages' own variables, which a few inline styles
   name, are v2's: --bg-card, --text-muted. Light only, as the rest of v2 (v2.css: color-scheme light). */
.mw-legacy-page {
  --bg-card: var(--panel-2);
  --text-muted: var(--text-2);
  width: 100%; max-width: 860px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 40px 36px; font-size: 14px; line-height: 1.85; color: var(--text);
  overflow-wrap: anywhere;
}
.mw-legacy-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mw-legacy-page a:hover { color: var(--accent-dark); }

/* the head of the sheet: MogWatch in the accent, the title, the date of the last change */
.mw-legacy-page .eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.mw-legacy-page h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 1.35; }
.mw-legacy-page .updated { margin: 0 0 24px; font-size: 12px; color: var(--text-dim); }
.mw-legacy-page .lead, .mw-legacy-page .subtitle { margin: 0 0 28px; font-size: 15px; color: var(--text-2); line-height: 1.85; }

/* the sections: as v2's panel titles (a thin accent line on the left) */
.mw-legacy-page h2 { margin: 36px 0 12px; padding-left: 10px; border-left: 3px solid var(--accent); font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--text); }
.mw-legacy-page h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.mw-legacy-page p { margin: 0 0 14px; }
.mw-legacy-page ul, .mw-legacy-page ol { margin: 0 0 16px; padding-left: 1.5em; }
.mw-legacy-page li { margin-bottom: 6px; }
.mw-legacy-page li::marker { color: var(--text-dim); }
.mw-legacy-page strong { font-weight: 700; }
.mw-legacy-page code { padding: 1px 6px; border-radius: 4px; background: var(--accent-light); color: var(--accent-dark); font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* tables (the privacy policy, 特定商取引法に基づく表記, the methodology): as v2's tables, the text wrapping */
.mw-legacy-page table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 13.5px; line-height: 1.75; }
.mw-legacy-page th, .mw-legacy-page td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.mw-legacy-page thead th { font-size: 12px; font-weight: 600; color: var(--text-2); border-bottom-color: var(--border); background: var(--panel-2); }
.mw-legacy-page tbody th { width: 30%; font-weight: 600; background: var(--panel-2); white-space: nowrap; }
.mw-legacy-page table { border-top: 1px solid var(--border); }

/* サイトについて: the banks and the cards */
.mw-legacy-page .bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 24px; }
.mw-legacy-page .bank-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.6; }
.mw-legacy-page .bank-card .abbr { margin-bottom: 2px; font-size: 17px; font-weight: 700; }
.mw-legacy-page .bank-card .abbr a { text-decoration: none; }
.mw-legacy-page .bank-card .name { margin-bottom: 2px; font-size: 12px; color: var(--text-2); }
.mw-legacy-page .bank-card .rate-label { font-size: 11px; color: var(--text-dim); }
.mw-legacy-page .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 24px; }
.mw-legacy-page .card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; line-height: 1.7; }
.mw-legacy-page .card p { margin: 0; font-size: 13px; color: var(--text-2); }
.mw-legacy-page .link-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mw-legacy-page .link-list li { margin: 0; }
.mw-legacy-page .link-list li a, .mw-legacy-page a[style*="--bg-card"] {
  display: block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
  font-size: 13px; color: var(--text); text-decoration: none; line-height: 1.6;
}
.mw-legacy-page .link-list li a:hover, .mw-legacy-page a[style*="--bg-card"]:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-light); }

/* よくある質問: each question opens its answer (the page's own script) */
.mw-legacy-page .faq-item { border-top: 1px solid var(--rule); padding: 18px 0; }
.mw-legacy-page .faq-item:last-of-type { border-bottom: 1px solid var(--rule); }
.mw-legacy-page h2.faq-q { margin: 0; padding: 0; border: 0; font-size: 15px; line-height: 1.6; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mw-legacy-page h2.faq-q::after { content: '＋'; flex-shrink: 0; color: var(--accent); font-weight: 400; }
.mw-legacy-page .faq-item.open h2.faq-q::after { content: '－'; }
.mw-legacy-page .faq-a { display: none; margin-top: 10px; color: var(--text); }
.mw-legacy-page .faq-item.open .faq-a { display: block; }
.mw-legacy-page .faq-a p:last-child { margin-bottom: 0; }

/* 計算方法: the summary box and the steps */
.mw-legacy-page .summary { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: var(--accent-light); }
.mw-legacy-page .summary h2 { margin: 0 0 6px; }
.mw-legacy-page .summary ul { margin: 0; }
.mw-legacy-page ol.steps li { margin-bottom: 10px; }

/* お問い合わせ */
.mw-legacy-page .card-label { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.mw-legacy-page .card-value { font-size: 16px; font-weight: 600; }
.mw-legacy-page .note { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.mw-legacy-contact .mw-legacy-page .card { padding: 22px 24px; margin-bottom: 20px; }
.mw-legacy-page .divider { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }

@media (max-width: 959px) {
  .mw-legacy-page { padding: 28px 28px 32px; }
}
@media (max-width: 639px) {
  .mw-legacy-page { padding: 20px 16px 24px; font-size: 14px; line-height: 1.8; }
  .mw-legacy-page h1 { font-size: 21px; }
  .mw-legacy-page h2 { margin-top: 30px; font-size: 16px; }
  .mw-legacy-page tbody th { white-space: normal; width: 34%; }
  /* the privacy policy's tables of three columns scroll inside the sheet, never the page */
  .mw-legacy-page table:has(thead) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mw-legacy-page table:has(thead) th, .mw-legacy-page table:has(thead) td { min-width: 7.5em; }
}
