/**
 * 法务 / 条款页统一样式（与 privacy_ja 版式一致：简约、留白、中性色）
 * 本目录内所有 .html 应通过 <link rel="stylesheet" href="./legal-doc.css"> 引用。
 */

:root {
  --doc-fg: #1a1d21;
  --doc-muted: #4a5056;
  --doc-border: #c8cdd3;
  --doc-bg: #fafbfc;
  --doc-link: #0b57d0;
  --doc-link-hover: #0842a0;
  --doc-heading: #0f1216;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--doc-bg);
  color: var(--doc-fg);
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 日文页标题不强制大写 */
body.doc-ja p.doc-title,
body.doc-ja h1.doc-title {
  text-transform: none;
  letter-spacing: 0.03em;
}

main.doc-shell {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3rem 1.75rem 4rem;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

main.doc-shell > p:first-of-type {
  margin-top: 0;
}

p {
  margin: 0.65em 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

p.doc-title,
h1.doc-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--doc-border);
  color: var(--doc-heading);
}

/* 未加 doc-title class 的页面主标题（与 privacy 页眉同风格） */
main.doc-shell > h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--doc-border);
  color: var(--doc-heading);
}

p.doc-meta {
  text-align: justify;
  font-size: 0.95rem;
  color: var(--doc-muted);
  margin: 1rem 0 1.5rem;
}

/* 小节标题（脚本文内加粗条目标题） */
p.doc-section {
  margin-top: 1.1em;
  margin-bottom: 0.5em;
  font-weight: 700;
  color: var(--doc-heading);
}

p.doc-section b,
p.doc-section strong {
  font-weight: 700;
}

/* 列表式缩进（替代原 inline padding-left） */
.indent-1 {
  padding-left: 1em;
}
.indent-2 {
  padding-left: 2em;
}
.indent-2-5 {
  padding-left: 2.5em;
}
.indent-3-25 {
  padding-left: 3.25em;
}
.indent-4 {
  padding-left: 4em;
}

/* 悬挂缩进段落 */
.hanging {
  padding-left: 2em;
  text-indent: -2em;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

td,
th {
  border: 1px solid var(--doc-border);
  padding: 0.55rem 0.65rem;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: break-word;
}

strong,
b {
  font-weight: 700;
  color: var(--doc-heading);
}

u {
  text-decoration: underline;
}

a {
  color: var(--doc-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--doc-link-hover);
}


/* 条款列表结构（与 content-list / item-title 兼容，视觉与 shell 内正文一致） */
.content-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.content-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--doc-border);
}

.content-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.item-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--doc-heading);
}

.content-list a {
  color: var(--doc-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-list a:hover {
  color: var(--doc-link-hover);
}

.content-list ol {
  list-style-type: decimal;
  margin: 0.5rem 0 0 1.25em;
  padding-left: 1.25em;
  color: var(--doc-fg);
}

.content-list ol li {
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.sub-list {
  list-style-type: disc;
  margin: 0.5rem 0 0 1.25em;
  padding-left: 1.25em;
}

.sub-list li {
  margin-bottom: 0.4rem;
  color: var(--doc-fg);
}

.note {
  font-size: 0.95rem;
  color: var(--doc-muted);
  line-height: 1.65;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--doc-bg);
  border-left: 3px solid var(--doc-border);
  border-radius: 4px;
}

@media print {
  body {
    background: #fff;
  }
  main.doc-shell {
    box-shadow: none;
    max-width: none;
    padding: 0;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  main.doc-shell {
    padding: 2rem 1.25rem 3rem;
  }

  p.doc-title,
  h1.doc-title {
    font-size: 1.35rem;
  }
}


/* 导航链接区 */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2cm; /* ✅ 缩小间距 */
    flex-wrap: wrap;
    margin-bottom: 1.2cm;
}
.nav-links a {
    text-decoration: none;
    color: #003366;
    font-size: 12pt;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #003366;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
.nav-links a:hover {
    color: #800000;
}