.cpn-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.cpn-section > div:nth-child(1) {
  grid-column: span 8;
}

.cpn-section > div:nth-child(2) {
  grid-column: span 4;
}

.cpn-content {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: auto;
  padding: 40px 0;
  box-sizing: border-box;
}

.cpn-content-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpn-content-title > p {
  opacity: 0.5;
}

.cpn-content-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cpn-content-quote {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  box-sizing: border-box;
  background-color: #EEECED;
}

.cpn-content-block ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding-left: 20px;
}

.cpn-content-block ul > li > p:not(:first-child) {
  margin-top: 16px;
}

.cpn-content-block a {
  color: #1d1d1d;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cpn-toc-sticky {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpn-toc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 40px 24px 32px 24px;
  background-color: #EEECED;
  box-sizing: border-box;
}

.cpn-toc-title > img {
  display: none;
}

.cpn-toc-hidden-content {
  padding: 24px;
  background-color: #EEECED;
  box-sizing: border-box;
}

.cpn-toc-hidden-content > ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.cpn-toc-hidden-content > ol > li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpn-toc-hidden-content > ol > li::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background-image: url('/img/candidate-privacy-policy/arrow-right-small.svg');
}

.cpn-toc-hidden-content a {
  text-decoration: none;
  color: #1d1d1d;
}

.cpn-toc-hidden-content .cpn-active-title {
  text-decoration: underline;
  color: #3681BA;
}

@media screen and (max-width: 1024px) {
  .cpn-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .cpn-section > div:nth-child(1) {
    order: 2;
    max-width: 100%;
  }

  .cpn-section > div:nth-child(2) {
    order: 1;
  }

  .cpn-content {
    padding: 0;
  }

  .cpn-toc-title > img {
    display: block;
    transform: rotate(-180deg);
    transition: all .2s linear;
  }

  .cpn-toc-hidden-content {
    max-height: 0px;
    transition: all .2s linear;
    overflow: hidden;
    padding: 0 16px;
    opacity: 0;
  }

  .cpn-toc-hidden-content-open .cpn-toc-hidden-content {
    max-height: 2000px;
    padding: 16px;
    opacity: 1;
  }

  .cpn-toc-hidden-content-open .cpn-toc-title > img {
    transform: rotate(0deg);
  }
}

@media screen and (max-width: 580px) {
  .cpn-content-title .f50 {
    font-size: 40px;
  }

  .cpn-content .f30 {
    font-size: 30px !important;
  }

  .cpn-toc-title {
    padding: 21px 16px;
  }
}