/* 通明堂 · 法律文件公共样式（/legal/） */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 32px 16px 64px;
  background: #f6f5f2;
  color: #1f1f1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

.doc {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 10px;
  padding: 48px 56px 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .04);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ece8df;
  font-size: 13px;
  letter-spacing: .08em;
  color: #8a7f6b;
  text-transform: uppercase;
}
.brand strong { font-size: 15px; letter-spacing: .16em; color: #3d3529; font-weight: 600; }
.brand a { margin-left: auto; color: #8a7f6b; text-decoration: none; letter-spacing: 0; }
.brand a:hover { color: #3d3529; }

h1 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #141414;
}

.subtitle { margin: 0 0 20px; color: #6b6459; font-size: 14px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: #6b6459;
}
.meta li {
  padding: 3px 10px;
  background: #f6f4ef;
  border: 1px solid #e9e4d9;
  border-radius: 999px;
}

.notice {
  margin: 0 0 30px;
  padding: 16px 18px;
  background: #fbf8f1;
  border-left: 3px solid #b8934a;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: #4a4234;
}
.notice b { color: #2f2a22; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

.toc {
  margin: 0 0 36px;
  padding: 18px 22px;
  background: #faf9f6;
  border: 1px solid #ece8df;
  border-radius: 8px;
  font-size: 13.5px;
}
.toc-title { margin: 0 0 8px; font-weight: 600; color: #3d3529; font-size: 13px; letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 2px 0; break-inside: avoid; }
.toc a { color: #5a5346; text-decoration: none; }
.toc a:hover { color: #8a6d2f; text-decoration: underline; }

h2 {
  margin: 40px 0 12px;
  padding-top: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  scroll-margin-top: 20px;
}
h2:first-of-type { margin-top: 8px; }

h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 600; color: #33302a; }

p { margin: 0 0 12px; }
ol, ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 5px 0; }

strong { font-weight: 600; color: #141414; }
.hl { background: linear-gradient(transparent 62%, #f3e4c4 62%); padding: 0 1px; }

a { color: #8a6d2f; text-decoration: none; border-bottom: 1px solid rgba(138, 109, 47, .3); }
a:hover { border-bottom-color: #8a6d2f; }

table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  font-size: 13.5px;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 12.5px;
  color: #8a7f6b;
  padding-bottom: 6px;
}
th, td {
  padding: 9px 12px;
  border: 1px solid #e9e4d9;
  text-align: left;
  vertical-align: top;
}
th { background: #f8f6f1; font-weight: 600; color: #3d3529; white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fcfbf8; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

.foot {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid #ece8df;
  font-size: 12.5px;
  color: #8a7f6b;
  line-height: 1.9;
}
.foot p { margin: 0 0 4px; }
.foot a { color: #8a7f6b; border-bottom-color: rgba(138, 127, 107, .35); }

.back {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
}

@media (max-width: 720px) {
  body { padding: 16px 10px 40px; font-size: 14.5px; }
  .doc { padding: 28px 20px 26px; border-radius: 8px; }
  h1 { font-size: 22px; }
  h2 { font-size: 16.5px; margin-top: 32px; }
  .toc ol { columns: 1; }
  table { font-size: 12.5px; }
  th, td { padding: 7px 8px; }
  th { white-space: normal; }
}

@media print {
  body { background: #fff; padding: 0; }
  .doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .toc, .back { display: none; }
  h2 { page-break-after: avoid; }
}
