:root {
  --sidebar: #0b0b10;
  --sidebar-raised: #1a1522;
  --sidebar-border: #332a42;
  --sidebar-text: #f7f5fb;
  --sidebar-muted: #b8b1c2;
  --paper: #ffffff;
  --ground: #eef0f4;
  --ink: #17141b;
  --body: #4f4956;
  --muted: #716a78;
  --line: #ddd9e3;
  --purple: #6d3bd1;
  --purple-strong: #5424b3;
  --purple-soft: #f0ebff;
  --teal: #08766d;
  --teal-soft: #e8f7f4;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --warning: #925000;
  --warning-soft: #fff5e3;
  --focus: #b79aff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--purple-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--purple);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.layout {
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--paper);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  overflow-y: auto;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.brand-link {
  display: block;
  width: 196px;
  height: 64px;
  overflow: hidden;
  border-radius: 6px;
  background: #000000;
}

.brand-link:focus-visible {
  border-radius: 6px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sidebar-label {
  margin: 14px 0 24px;
  color: var(--sidebar-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border-left: 3px solid transparent;
  color: #ddd7e6;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.side-nav a:hover,
.side-nav a[aria-current="page"] {
  background: var(--sidebar-raised);
  border-left-color: #a978ff;
  color: #ffffff;
}

.sidebar-contact {
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--sidebar-border);
  color: var(--sidebar-muted);
  font-size: 13px;
}

.sidebar-contact strong {
  display: block;
  color: var(--sidebar-text);
}

.sidebar-contact a {
  color: #cbb7ff;
}

.content {
  min-width: 0;
  padding: 64px clamp(28px, 7vw, 88px) 72px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--purple-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--body);
  font-size: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.document-nav {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.document-nav a {
  min-height: 112px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.document-nav a:hover .arrow {
  color: var(--purple);
  transform: translateX(4px);
}

.number {
  color: var(--purple-strong);
  font-size: 14px;
  font-weight: 800;
}

.document-nav strong {
  display: block;
  font-size: 23px;
  line-height: 1.3;
}

.document-nav small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.arrow {
  color: var(--muted);
  font-size: 24px;
  transition: transform 180ms ease, color 180ms ease;
}

.notice {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 4px solid var(--warning);
  background: var(--warning-soft);
  color: #663a08;
  font-size: 14px;
}

.article-header {
  padding-bottom: 36px;
  border-bottom: 3px solid var(--ink);
}

.article-header h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.article {
  max-width: 760px;
}

.summary-box {
  margin: 34px 0 42px;
  padding: 24px;
  border-left: 4px solid var(--purple);
  background: var(--purple-soft);
}

.summary-box strong {
  display: block;
  margin-bottom: 8px;
  color: #45208f;
}

.summary-box p {
  margin: 0;
}

h2 {
  margin: 46px 0 12px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
}

h2 .section-no {
  display: block;
  margin-bottom: 5px;
  color: var(--purple-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

p,
li {
  color: var(--body);
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 9px;
}

.action {
  margin-top: 44px;
  padding: 24px;
  border-top: 4px solid var(--teal);
  background: var(--teal-soft);
}

.action.danger {
  border-top-color: var(--danger);
  background: var(--danger-soft);
}

.action h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.action p {
  margin: 0;
}

.primary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.primary-link:hover {
  background: #8f1b13;
  color: #ffffff;
}

.legal-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px 20px;
  }

  .brand-link {
    width: 160px;
    height: 52px;
  }

  .sidebar-label {
    margin: 10px 0 14px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav a {
    font-size: 14px;
  }

  .sidebar-contact {
    margin-top: 18px;
    padding-top: 16px;
  }

  .content {
    padding: 40px 20px 54px;
  }

  h1 {
    font-size: 40px;
  }

  .document-nav a {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .document-nav strong {
    font-size: 20px;
  }
}

@media (max-width: 390px) {
  .side-nav {
    grid-template-columns: 1fr;
  }

  h1,
  .article-header h1 {
    font-size: 36px;
  }
}

