/*
 * Shared styles for static legal pages (privacy / terms / legal × ja + en).
 * Was duplicated 6 times inline in each .html before; extracted to keep them in sync.
 * Override-friendly: legal.html / legal.en.html add a `table` ruleset on top of this.
 */
:root {
  --bg: #fafafa;
  --paper: #fff;
  --ink: #0b0e14;
  --ink-2: #2d343d;
  --ink-3: #5b6470;
  --line: #d8dde4;
  --accent: #0066cc;
}
* { box-sizing: border-box; }
html, body {
  background: var(--bg); color: var(--ink); margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8; font-size: 15px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
header.top { border-bottom: 1px solid var(--line); margin-bottom: 36px; }
header.top .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 18px; }
.lang { color: var(--accent); text-decoration: none; font-size: 13px; }
.lang:hover { text-decoration: underline; }
.back { color: var(--accent); text-decoration: none; font-size: 14px; }
.back:hover { text-decoration: underline; }
h1 { font-size: 32px; line-height: 1.2; margin: 24px 0 8px; letter-spacing: -0.01em; }
.lede { color: var(--ink-2); margin: 0 0 32px; font-size: 16px; }
.meta { color: var(--ink-3); font-size: 13px; margin: 0 0 40px; }
h2 { font-size: 20px; margin: 36px 0 12px; line-height: 1.3; }
h3 { font-size: 16px; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 16px; color: var(--ink-2); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
strong { color: var(--ink); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 48px 0 32px; }
footer.bottom { color: var(--ink-3); font-size: 13px; text-align: center; padding: 36px 0; border-top: 1px solid var(--line); }

/* Tables (used by legal.html / legal.en.html — 特商法表記) */
table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; width: 32%; background: #f3f4f6; }
td { color: var(--ink-2); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px 60px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
  table { font-size: 13px; }
  th, td { padding: 10px 12px; }
}
