/* ============================================================
   vimory — legal pages
   Monochrome editorial UI · light/dark theme-aware
   ============================================================ */

:root {
  color-scheme: light dark;

  /* light theme (default) */
  --bg:        #fbfbfa;
  --bg-elev:   #ffffff;
  --fg:        #16161a;
  --fg-soft:   #3d3d44;
  --muted:     #8a8a92;
  --line:      #e9e9e6;
  --line-soft: #f1f1ee;
  --accent:    #16161a;
  --sel:       #16161a;
  --sel-fg:    #fbfbfa;

  --max: 680px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0b0d;
    --bg-elev:   #141417;
    --fg:        #f4f4f2;
    --fg-soft:   #c9c9cc;
    --muted:     #7f7f88;
    --line:      #26262b;
    --line-soft: #1b1b1f;
    --accent:    #f4f4f2;
    --sel:       #f4f4f2;
    --sel-fg:    #0b0b0d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "palt" 1;
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

::selection { background: var(--sel); color: var(--sel-fg); }

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.4s var(--ease);
}

.brand:hover::before { transform: scale(1.35); }

nav.site {
  display: flex;
  gap: 22px;
}

nav.site a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}

nav.site a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

nav.site a:hover { color: var(--fg); }
nav.site a:hover::after { transform: scaleX(1); }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ---------- headings ---------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 56px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 15.5px;
  font-weight: 620;
  margin: 26px 0 8px;
  color: var(--fg);
}

p, li {
  font-size: 15.5px;
  color: var(--fg-soft);
}

ul, ol {
  padding-left: 20px;
  margin: 12px 0;
}

li { margin: 8px 0; padding-left: 4px; }

ul li::marker { color: var(--muted); }
ol li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- links ---------- */

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover { border-bottom-color: var(--fg); }

.wrap a[href^="mailto:"] { white-space: nowrap; }

/* ---------- lead ---------- */

.lead {
  color: var(--fg);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  margin: 0 0 12px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--fg);
}

/* ---------- info table ---------- */

table.info {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

table.info tr { border-bottom: 1px solid var(--line); }
table.info tr:last-child { border-bottom: none; }

table.info th, table.info td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

table.info th {
  width: 34%;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  background: var(--line-soft);
  border-right: 1px solid var(--line);
}

table.info td { color: var(--fg-soft); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

footer.site a { color: var(--muted); border-bottom-color: transparent; }
footer.site a:hover { color: var(--fg); border-bottom-color: var(--muted); }

/* ---------- home page ---------- */

.hero {
  padding: 32px 0 8px;
}

.hero h1 { margin-bottom: 18px; }

.hero .lead { border-left: none; padding-left: 0; color: var(--muted); }

.home-links {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
}

.home-links li {
  border-top: 1px solid var(--line);
  padding: 0;
  margin: 0;
}

.home-links li:last-child { border-bottom: 1px solid var(--line); }

.home-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6px;
  color: var(--fg);
  font-weight: 550;
  font-size: 17px;
  letter-spacing: -0.005em;
  border-bottom: none;
  transition: padding 0.35s var(--ease), color 0.25s var(--ease);
}

.home-links a:hover { padding-left: 16px; }

.home-links .arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}

.home-links a:hover .arrow { transform: translateX(6px); color: var(--fg); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .wrap { padding: 44px 20px 96px; }
  header.site .inner { padding: 15px 20px; }
  nav.site { gap: 16px; }
  table.info th { width: 40%; white-space: normal; }
}
