:root {
  color-scheme: light dark;
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --text: #20221d;
  --muted: #64675e;
  --border: #dcd9cf;
  --accent: #315c4c;
  --accent-soft: #e4eee8;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 4vw;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.95rem;
}

.product-link {
  font-size: 0.9rem;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  gap: clamp(2rem, 6vw, 6rem);
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.policy-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.policy-nav p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.policy-nav a {
  display: block;
  margin: 0.1rem 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
}

.policy-nav a:hover,
.policy-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

main {
  min-width: 0;
}

main:focus {
  outline: none;
}

.policy {
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 22px 55px rgb(38 42 35 / 6%);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0 0 1.7rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.policy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  margin: 2.8rem 0 0.8rem;
  padding-top: 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  margin-top: 2rem;
}

p,
ul,
ol,
blockquote,
table {
  margin: 0.85rem 0 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

blockquote {
  margin-left: 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.91rem;
}

th,
td {
  padding: 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
}

.hero {
  margin: 1rem 0 3rem;
}

.hero > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.16rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.document-card {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.document-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.document-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.notice {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }

  .layout {
    display: block;
    padding-top: 1.5rem;
  }

  .policy-nav {
    position: static;
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    overflow-x: auto;
  }

  .policy-nav p {
    display: none;
  }

  .policy-nav a {
    flex: 0 0 auto;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    background: var(--surface);
  }

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

  footer {
    display: block;
  }
}

:root {
  color-scheme: dark;
  --bg: #1e1e1e;
  --surface: #18181b;
  --surface-raised: #222225;
  --sidebar: #262626;
  --text: #ededf0;
  --muted: #9898a2;
  --border: #303038;
  --accent: #a78bfa;
  --accent-soft: rgb(139 92 246 / 14%);
  --max: 1180px;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgb(255 255 255 / 5%) 0 0.8px, transparent 1px);
  background-position: 0 0;
  background-size: 20px 20px;
  font-size: 14px;
  line-height: 1.68;
}

::selection {
  background: rgb(139 92 246 / 35%);
  color: #fff;
}

.site-header {
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgb(30 30 30 / 94%);
  box-shadow: 0 1px 0 rgb(0 0 0 / 28%);
  backdrop-filter: blur(16px);
}

.brand {
  gap: 9px;
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 9%), 0 5px 14px rgb(0 0 0 / 28%);
}

.brand .brand-wordmark {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: -0.025em;
}

.brand .workspace-label {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #85858f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: normal;
  text-transform: none;
}

.brand .workspace-label::before {
  margin-right: 9px;
  color: #45454d;
  content: "/";
}

.product-link {
  padding: 5px 9px;
  border: 1px solid #34343b;
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
  color: #9b9ba6;
  font-size: 11px;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.product-link:hover {
  border-color: #454550;
  background: rgb(255 255 255 / 6%);
  color: #e4e4e7;
}

.layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 48px);
  margin: 0;
  padding: 0;
}

.policy-nav {
  top: 48px;
  height: calc(100vh - 48px);
  padding: 22px 12px;
  border-right: 1px solid #2e2e2e;
  background: var(--sidebar);
}

.policy-nav p {
  margin: 0 8px 10px;
  color: #696974;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.policy-nav a {
  position: relative;
  margin: 2px 0;
  padding: 8px 10px 8px 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #a0a0a9;
  font-size: 11.5px;
  font-weight: 500;
}

.policy-nav a::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 9px;
  height: 11px;
  border: 1px solid #666670;
  border-radius: 2px;
  content: "";
  transform: translateY(-50%);
}

.policy-nav a::after {
  position: absolute;
  top: calc(50% - 2px);
  left: 13px;
  width: 4px;
  height: 1px;
  background: #666670;
  box-shadow: 0 3px 0 #666670;
  content: "";
}

.policy-nav a:hover {
  border-color: rgb(255 255 255 / 4%);
  background: #2d2d2d;
  color: #d2d2d7;
}

.policy-nav a[aria-current="page"] {
  border-color: #3a3a42;
  background: #333;
  color: #f4f4f5;
  box-shadow: inset 2px 0 #8b5cf6;
}

.policy-nav a[aria-current="page"]::before {
  border-color: #a78bfa;
}

.policy-nav a[aria-current="page"]::after {
  background: #a78bfa;
  box-shadow: 0 3px 0 #a78bfa;
}

main {
  min-width: 0;
  padding: clamp(28px, 5vw, 66px) clamp(18px, 6vw, 86px) 80px;
}

.hero,
.document-grid,
.notice {
  width: min(850px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.policy-message {
  display: flex;
  align-items: flex-start;
  width: min(920px, 100%);
  margin: 0 auto;
  gap: 12px;
}

.message-avatar-slot {
  width: 28px;
  flex: 0 0 28px;
}

.message-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
}

.message-row-body {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.message-row-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.message-row-name {
  color: #ededed;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.message-row-time {
  color: #62626c;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10.5px;
}

.policy {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

h1,
h2,
h3 {
  color: #f4f4f5;
}

h1 {
  color: #fafafa;
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  font-weight: 680;
}

.policy h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

h2 {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid #2d2d34;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 640;
}

h3 {
  color: #dddde2;
  font-size: 1.05rem;
}

.policy p,
.policy li {
  color: #b8b8c0;
  font-size: 13.5px;
  line-height: 1.6;
}

.policy strong {
  color: #e4e4e7;
}

a {
  color: #a78bfa;
}

blockquote {
  border-left-color: #8b5cf6;
  color: #a6a6b0;
}

th,
td {
  border-color: #34343c;
}

th {
  background: #242429;
  color: #e4e4e7;
}

.hero {
  margin-top: 24px;
  margin-bottom: 36px;
}

.hero > p:not(.eyebrow) {
  color: #a3a3ad;
}

.eyebrow {
  color: #a78bfa;
}

.document-grid {
  gap: 10px;
}

.document-card {
  min-height: 132px;
  border-color: #303038;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 2.5%), transparent 55%),
    rgb(24 24 27 / 94%);
  color: #ededf0;
  box-shadow: 0 12px 34px rgb(0 0 0 / 12%);
}

.document-card:hover {
  border-color: rgb(139 92 246 / 55%);
  background-color: #1c1c20;
  box-shadow: 0 16px 40px rgb(0 0 0 / 22%), 0 0 0 1px rgb(139 92 246 / 8%);
}

.document-card span {
  color: #8f8f99;
}

.notice {
  border: 1px solid rgb(139 92 246 / 20%);
  background: rgb(139 92 246 / 9%);
  color: #c9c9d0;
}

footer {
  width: auto;
  margin: 0 0 0 250px;
  padding: 18px clamp(18px, 6vw, 86px) 26px;
  border-top-color: #303038;
  background: #1b1b1d;
  color: #777782;
  font-size: 11px;
}

@media (max-width: 780px) {
  .site-header {
    position: sticky;
    min-height: 48px;
  }

  .brand {
    gap: 7px;
  }

  .brand-logo {
    width: 25px;
    height: 25px;
  }

  .product-link {
    padding: 5px 7px;
    font-size: 0;
  }

  .product-link span {
    font-size: 12px;
  }

  .layout {
    display: block;
    min-height: calc(100vh - 48px);
  }

  .policy-nav {
    position: sticky;
    top: 48px;
    z-index: 1;
    display: flex;
    width: 100%;
    height: auto;
    gap: 5px;
    margin: 0;
    padding: 9px 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #303038;
    background: rgb(38 38 38 / 96%);
    backdrop-filter: blur(14px);
  }

  .policy-nav a {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 10px;
    border-color: #36363d;
    background: #29292c;
  }

  .policy-nav a::before,
  .policy-nav a::after {
    display: none;
  }

  main {
    padding: 24px 14px 52px;
  }

  .policy {
    padding: 0;
  }

  h1 {
    font-size: 2.15rem;
  }

  .policy h1 {
    font-size: 1.55rem;
  }

  .policy-message {
    gap: 10px;
  }

  .message-avatar-slot,
  .message-avatar {
    width: 26px;
    height: 26px;
  }

  .message-avatar-slot {
    flex-basis: 26px;
  }

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

  footer {
    display: block;
    margin-left: 0;
    padding: 20px 16px 26px;
  }

  footer p + p {
    margin-top: 6px;
  }
}

@media print {
  .site-header,
  .policy-nav,
  footer {
    display: none;
  }

  body,
  .policy {
    background: white;
    color: black;
  }

  .layout {
    display: block;
    width: auto;
    padding: 0;
  }

  .policy {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
