
:root {
  --text: #17191d;
  --muted: #686d76;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f6f7f8;
  --accent: #1d3557;
  --max: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.brand {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 118px;
  min-height: 64px;
  text-decoration: none;
}
.brand img {
  position: relative;
  z-index: 2;
  width: min(190px, 46vw);
  height: auto;
  display: block;
  opacity: 0;
  animation: logoAppear 0.55s ease-out forwards;
}

@keyframes logoAppear {
  from {
    opacity: 0;
    transform: translateY(3px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.home {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 32px;
}
.home-main {
  display: grid;
  place-items: center;
  text-align: center;
}
.home-card { max-width: 720px; }
.home h1 {
  margin: 28px 0 8px;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: .03em;
}
.home p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.home-footer {
  text-align: center;
  padding: 24px 0 4px;
  font-size: 14px;
}
.home-footer a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.back-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.document {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 24px 96px;
}
.document-title {
  max-width: 800px;
  margin-bottom: 44px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.document h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}
.document-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.toc {
  margin: 40px 0 54px;
  padding: 26px 28px;
  background: var(--soft);
  border-radius: 16px;
}
.toc strong {
  display: block;
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--accent);
  text-decoration: none;
}
.document h2 {
  margin: 58px 0 22px;
  padding-top: 80px;
  margin-top: -30px;
  font-size: 25px;
  line-height: 1.3;
}
.document p { margin: 0 0 14px; }
.clause {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 4px;
}
.clause-level-2 {
  grid-template-columns: 86px minmax(0,1fr);
}
.clause-number {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.list-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 4px;
  margin-left: 68px;
}
.list-item p { margin: 0 0 9px; }
.numbered { margin-left: 86px; }
.document-footer {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 680px) {
  .home { padding: 22px; }
  .header-inner { padding: 10px 18px; }
  .back-link { font-size: 0; }
  .back-link::after { content: "←"; font-size: 22px; }
  .document { padding: 38px 18px 72px; }
  .toc { padding: 20px; }
  .document h2 { font-size: 22px; }
  .clause, .clause-level-2 {
    display: block;
  }
  .clause-number {
    display: inline;
    margin-right: 7px;
  }
  .clause > span:last-child,
  .clause-level-2 > span:last-child { display: inline; }
  .list-item, .numbered { margin-left: 0; }
}
@media print {
  .site-header, .toc { display: none; }
  .document { max-width: none; padding: 0; }
  .document h2 { break-after: avoid; padding-top: 0; margin-top: 34px; }
  a { text-decoration: none; }
}
