body.policy {
  background: #f6f0ff;
  color: #24124a;
}

body.policy .nav-inner {
  border-color: #e4d6ff;
  background: #fff;
  color: #24124a;
}

body.policy .nav-links a[aria-current="page"] {
  background: #efe4ff;
  color: #7733ff;
}

body.policy .nav-links a:hover {
  background: #f6f0ff;
}

body.policy .nav-links a:focus-visible,
body.policy .brand:focus-visible {
  outline-color: #7733ff;
}

.policy-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.toc {
  position: sticky;
  top: 92px;
}

.toc-label {
  margin: 0 0 8px;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 3px solid transparent;
  color: #24124a;
  font-size: 0.92rem;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover,
.toc a[aria-current="true"] {
  border-left-color: #7733ff;
  color: #7733ff;
}

.toc a:focus-visible,
.policy-article a:focus-visible {
  outline: 3px solid #7733ff;
  outline-offset: 3px;
}

.policy-article h1 {
  margin: 0 0 0.6em;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.3;
}

.policy-article h2 {
  margin: 2em 0 0.4em;
  scroll-margin-top: 96px;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.4;
}

.policy-article h3 {
  margin: 1.35em 0 0.25em;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
}

.policy-article p {
  margin: 0.75em 0;
  line-height: 1.9;
}

.policy-article a {
  color: #5b22e0;
  overflow-wrap: anywhere;
}

body.policy ::selection {
  background: #7733ff;
  color: #fff;
}

@media (max-width: 800px) {
  .policy-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: min(1080px, calc(100% - 28px));
  }

  .toc,
  .toc ol {
    min-width: 0;
    max-width: 100%;
  }

  .toc {
    position: static;
  }

  .toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .toc ol::-webkit-scrollbar {
    display: none;
  }

  .toc a {
    white-space: nowrap;
    padding: 8px 12px;
    border-left: 0;
    border-radius: 999px;
    background: #fff;
  }

  .toc a[aria-current="true"] {
    background: #7733ff;
    color: #fff;
  }
}
