/* 日本語の道 法律页面共用样式（无外部依赖，系统字体） */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5d6470;
  --border: #e3e4e8;
  --accent: #4338ca;
  --accent-soft: #eef0ff;
  --note-bg: #fff8e6;
  --note-border: #f0d48a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1b1d21;
    --text: #e6e7ea;
    --muted: #a3a8b3;
    --border: #2e3138;
    --accent: #a5b4fc;
    --accent-soft: #252a45;
    --note-bg: #2b2516;
    --note-border: #5c4c1f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "PingFang SC", "Noto Sans JP", "Noto Sans SC", "Noto Sans", "Segoe UI", Roboto, "Yu Gothic UI",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding-top: 10px; padding-bottom: 10px;
}
.brand { font-weight: 700; font-size: 17px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; font-size: 13px; line-height: 1.5;
}
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
main { padding-top: 8px; padding-bottom: 40px; }
.doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 20px 24px; margin-top: 16px;
}
.doc[hidden] { display: none; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 20px 0 4px; }
h2 { font-size: 1.12rem; line-height: 1.5; margin: 28px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); }
h3 { font-size: 1rem; margin: 18px 0 6px; }
p { margin: 8px 0; }
ul, ol { margin: 8px 0; padding-left: 1.4em; }
li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.note {
  background: var(--note-bg); border: 1px solid var(--note-border); border-radius: 8px;
  padding: 10px 14px; margin: 12px 0; font-size: 15px;
}
a { color: var(--accent); }
dl.contact { margin: 8px 0; }
dl.contact dt { font-weight: 600; margin-top: 6px; }
dl.contact dd { margin: 0 0 0 0; }
.faq h3 { margin-top: 22px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 0 16px 32px; }
@media (max-width: 480px) {
  .doc { padding: 4px 14px 20px; border-radius: 10px; }
  h1 { font-size: 1.35rem; }
}

/* #delete-account 等锚点跳转时避开吸顶导航栏 */
[data-anchor] { scroll-margin-top: 88px; }
