/* 1% — legal pages. Dark editorial, readability-first. */

:root {
  --bg: #0A0A0B;
  --ink: #EDEBE6;
  --muted: #98958C;
  --faint: #5F5D56;
  --hair: rgba(237, 235, 230, 0.12);
  --maxw: 42rem;
}

@font-face {
  font-family: "OnePercent";
  src: url("/fonts/Montserrat-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
}
body.en { line-height: 1.75; letter-spacing: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(640px 320px at 50% -120px, rgba(237, 235, 230, 0.06), transparent 70%);
}

.wrap { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 96px; }

/* header */
.site-head { display: flex; align-items: baseline; justify-content: space-between; padding: 28px 0 0; }
.wordmark {
  font-family: "OnePercent", "Montserrat", -apple-system, sans-serif;
  font-style: italic; font-weight: 900;
  font-size: 22px; color: var(--ink); text-decoration: none;
}
.lang a {
  color: var(--muted); text-decoration: none; font-size: 13px;
  border: 1px solid var(--hair); padding: 3px 12px; border-radius: 999px;
}
.lang a:hover { color: var(--ink); border-color: var(--muted); }

/* document head */
.doc-head { margin: 72px 0 40px; }
.doc-kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
h1 { font-size: 30px; line-height: 1.35; margin: 0 0 14px; font-weight: 700; letter-spacing: 0.02em; }
.doc-meta { color: var(--faint); font-size: 13px; margin: 0; }
.lede { color: var(--muted); margin: 28px 0 0; }

/* table of contents */
.toc {
  margin: 48px 0 56px; padding: 4px 0 4px 20px;
  border-left: 1px solid var(--hair);
  list-style: none;
  columns: 2; column-gap: 32px;
}
.toc li { margin: 2px 0; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.toc a:hover { color: var(--ink); }
@media (max-width: 560px) { .toc { columns: 1; } }

/* body copy */
h2 { font-size: 17px; font-weight: 700; margin: 64px 0 14px; letter-spacing: 0.02em; }
h2 .no { display: block; color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; margin-bottom: 6px; }
h3 { font-size: 15.5px; font-weight: 700; margin: 30px 0 8px; }
p { margin: 14px 0; }
ol, ul { padding-left: 1.7em; margin: 14px 0; }
li { margin: 6px 0; }
strong { font-weight: 700; color: #FFFFFF; }
a { color: var(--ink); }
.note { color: var(--muted); font-size: 13.5px; }

/* tables */
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--hair); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.7; min-width: 600px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* footer */
.site-foot {
  margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--hair);
  color: var(--faint); font-size: 12.5px;
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
}
.site-foot a { color: var(--faint); }

/* landing */
.hero { margin: 96px 0 56px; }
.hero .mark { font-family: "OnePercent", sans-serif; font-style: italic; font-weight: 900; font-size: 88px; line-height: 1; margin: 0; }
.hero .tagline { color: var(--muted); letter-spacing: 0.04em; margin: 20px 0 0; font-size: 15px; }
.doc-list { list-style: none; padding: 0; margin: 48px 0; border-top: 1px solid var(--hair); }
.doc-list li { margin: 0; border-bottom: 1px solid var(--hair); }
.doc-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 4px; text-decoration: none; color: var(--ink);
}
.doc-list a:hover { color: #FFFFFF; background: rgba(237, 235, 230, 0.03); }
.doc-list .sub { color: var(--faint); font-size: 12.5px; letter-spacing: 0.06em; white-space: nowrap; }

/* print */
@media print {
  :root { --bg: #FFFFFF; --ink: #111111; --muted: #444444; --faint: #666666; --hair: #DDDDDD; }
  body::before { display: none; }
  .lang { display: none; }
  strong { color: #000000; }
}
