:root {
  color-scheme: light;
  --canvas: #fbf8fa;
  --canvas-deep: #f5eff4;
  --surface: #fffdfd;
  --surface-soft: #f9f3f7;
  --ink: #312b36;
  --ink-muted: #6f6673;
  --ink-faint: #938993;
  --line: #eadfe6;
  --rose: #ed83aa;
  --rose-dark: #ad4f74;
  --rose-light: #fbe2eb;
  --coral: #f8a59e;
  --periwinkle: #a5a7c8;
  --periwinkle-dark: #656987;
  --warning: #8a5b28;
  --warning-bg: #fff4df;
  --warning-line: #ecd2a4;
  --shadow: 0 18px 55px rgba(80, 56, 73, 0.08);
  --display: ui-rounded, "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 92% 5%, rgba(165, 167, 200, 0.16), transparent 25rem),
    radial-gradient(circle at 5% 24%, rgba(237, 131, 170, 0.11), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.85;
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rose-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--periwinkle-dark);
}

a:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(237, 131, 170, 0.38);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  border-radius: 0 0 10px 0;
  color: #fff;
  left: 0;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 120ms ease;
  z-index: 20;
}

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

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 250, 0.86);
  border-bottom: 1px solid rgba(234, 223, 230, 0.82);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.footer-inner,
.page-shell {
  margin: 0 auto;
  max-width: 1120px;
  width: calc(100% - 40px);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  gap: 11px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  height: 35px;
  position: relative;
  width: 41px;
}

.brand-mark::before,
.brand-mark::after {
  border-radius: 50%;
  content: "";
  position: absolute;
}

.brand-mark::before {
  background: linear-gradient(135deg, var(--rose), var(--coral));
  box-shadow: 0 6px 15px rgba(152, 84, 110, 0.17);
  height: 27px;
  left: 0;
  top: 1px;
  width: 30px;
  z-index: 2;
}

.brand-mark::after {
  background: linear-gradient(135deg, var(--periwinkle), #c4c5dc);
  height: 25px;
  right: 0;
  top: 9px;
  width: 28px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--rose-dark);
}

.page-shell {
  padding: 76px 0 104px;
}

.document-grid {
  align-items: start;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) 220px;
}

.document-column {
  min-width: 0;
}

.eyebrow {
  color: var(--periwinkle-dark);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 61px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 860px;
}

.hero-copy {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 760px;
}

.document-meta {
  align-items: center;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--utility);
  font-size: 10px;
  gap: 8px 18px;
  margin-top: 24px;
}

.conversation-rule {
  height: 74px;
  margin: 45px 0 28px;
  overflow: hidden;
  position: relative;
}

.conversation-rule::before,
.conversation-rule::after {
  border-radius: 999px;
  content: "";
  height: 42px;
  position: absolute;
  width: 64%;
}

.conversation-rule::before {
  background: linear-gradient(90deg, var(--rose), var(--coral));
  left: 0;
  top: 0;
}

.conversation-rule::after {
  background: linear-gradient(90deg, #c5c6dc, var(--periwinkle));
  bottom: 0;
  right: 0;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 38px 0 28px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.5;
  margin-bottom: 18px;
}

.legal-section p,
.legal-section li,
.disclosure-row dd {
  color: var(--ink-muted);
  font-size: 14px;
}

.legal-section p {
  white-space: pre-line;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25em;
}

.legal-section li + li {
  margin-top: 10px;
}

.toc {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  position: sticky;
  top: 110px;
}

.toc-title {
  color: var(--ink-faint);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.toc a {
  color: var(--ink-muted);
  display: block;
  font-size: 10px;
  line-height: 1.5;
  text-decoration: none;
}

.draft-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning-line);
  border-radius: 16px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 34px;
  padding: 14px 17px;
}

.disclosure-list {
  border-top: 1px solid var(--line);
  margin: 46px 0 0;
}

.disclosure-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  padding: 25px 0;
}

.disclosure-row dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.disclosure-row dd {
  margin: 0;
  white-space: pre-line;
}

.hub-intro {
  max-width: 720px;
}

.document-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 50px;
}

.document-card {
  background: rgba(255, 253, 253, 0.85);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  color: var(--ink);
  min-height: 190px;
  padding: 26px;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.document-card:hover {
  border-color: rgba(237, 131, 170, 0.55);
  color: var(--ink);
  transform: translateY(-2px);
}

.card-label {
  color: var(--periwinkle-dark);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.document-card h2 {
  font-family: var(--display);
  font-size: 19px;
  margin: 26px 0 8px;
}

.document-card p {
  color: var(--ink-muted);
  font-size: 12px;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  align-items: flex-start;
  display: flex;
  font-size: 11px;
  gap: 20px;
  justify-content: space-between;
  padding: 32px 0 42px;
}

.footer-copy {
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0 15px;
  }

  .site-header {
    position: relative;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    padding: 52px 0 74px;
  }

  .document-grid {
    display: block;
  }

  .toc {
    border-bottom: 1px solid var(--line);
    border-left: 0;
    margin: 34px 0 10px;
    padding: 0 0 24px;
    position: static;
  }

  .toc ol {
    columns: 2;
    column-gap: 24px;
  }

  .toc li {
    break-inside: avoid;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: calc(100% - 28px);
  }

  .site-nav {
    gap: 5px 14px;
  }

  .site-nav a {
    font-size: 10px;
  }

  h1 {
    font-size: 36px;
  }

  .conversation-rule {
    height: 60px;
    margin-top: 36px;
  }

  .conversation-rule::before,
  .conversation-rule::after {
    height: 34px;
    width: 74%;
  }

  .toc ol {
    columns: 1;
  }

  .document-cards {
    grid-template-columns: 1fr;
  }

  .disclosure-row {
    gap: 7px;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .toc,
  .conversation-rule,
  .draft-banner {
    display: none;
  }

  .page-shell {
    max-width: none;
    padding: 0;
    width: 100%;
  }

  .document-grid {
    display: block;
  }

  .legal-section {
    break-inside: avoid;
  }
}
