:root {
  --bg: #F5F2ED;
  --surface: #FFFFFF;
  --muted-surface: #EDEAE4;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --ink-3: #6B6B6B;
  --line: #D6D1C7;
  --accent: #B45309;
  --radius: 4px;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #92400E; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding-inline: 18px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,242,237,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.topbar .home {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 14px; background: var(--surface);
}
.topbar .home:hover { border-color: var(--ink); color: var(--ink); }

/* document */
.doc { counter-reset: sec; padding-top: 32px; padding-bottom: 56px; }
.doc-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc-head h1 {
  font-size: clamp(30px, 7.5vw, 42px); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.03em; margin: 12px 0 10px;
}
.doc-meta { font-size: 13px; color: var(--ink-3); margin: 0; }

.doc h2 {
  counter-increment: sec;
  font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  margin: 30px 0 10px; padding-top: 20px; border-top: 1px solid var(--line);
}
.doc h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.doc p, .doc li { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc em { font-style: normal; font-weight: 500; color: var(--ink); }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 14px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.doc table {
  border-collapse: collapse; width: 100%; min-width: 540px;
  font-size: 13.5px; line-height: 1.55;
}
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { background: var(--muted-surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }

.note {
  background: var(--muted-surface); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px; margin: 18px 0;
}
.note p { margin: 0; font-size: 14px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 18px; font-size: 12px; color: var(--ink-3);
}

@media (max-width: 639px) {
  .table-wrap { border: 0; overflow: visible; }
  .doc table { display: block; min-width: 0; }
  .doc tr { display: block; padding: 4px 0; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .doc th { display: none; }
  .doc td { display: block; border: 0; padding: 6px 14px; }
  .doc td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent);
  }
  .doc td:first-child { padding-top: 10px; font-weight: 600; color: var(--ink); }
  .doc tr:last-child td { border-bottom: 0; }
}

@media (min-width: 560px) {
  .wrap { padding-inline: 24px; }
  .doc { padding-top: 40px; }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 820px) {
  .topbar-inner { height: 66px; gap: 32px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .doc h2 { font-size: 18px; margin-top: 36px; }
  .doc p, .doc li { font-size: 16px; }
  footer { padding: 34px 0 44px; }
}
