.privacy-main {
  padding-top: var(--header-height);
  color: var(--color-text);
}

.privacy-heading {
  max-width: var(--section-max-w);
  margin: 0 auto;
  padding: 5rem var(--section-pad-x) 0;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  max-width: var(--section-max-w);
  margin: 0 auto;
  padding: 3rem var(--section-pad-x) 8rem;
}

.privacy-index {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  display: flex;
  max-height: calc(100vh - var(--header-height) - 4rem);
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--color-text);
}

.privacy-index a {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(80, 78, 77, 0.22);
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.privacy-index a:hover {
  color: var(--color-accent);
}

.privacypolicy-content {
  min-width: 0;
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.privacypolicy-content > p:first-child {
  margin-top: 0;
  margin-bottom: 5rem;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--color-accent);
  background: #fff;
}

.privacypolicy-content h2 {
  display: block;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.privacypolicy-content h2 .section-line {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
}

.privacypolicy-content h2:not(:first-of-type) {
  margin-top: 5rem;
}

.privacypolicy-content p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
}

.privacypolicy-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.privacypolicy-content li {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
}

.privacypolicy-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.privacypolicy-content a:hover {
  text-decoration: none;
}

.privacypolicy-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--color-muted);
}

@media (max-width: 800px) {
  .privacy-heading {
    padding-left: var(--section-pad-x-mobile);
    padding-right: var(--section-pad-x-mobile);
  }

  .privacy-layout {
    display: block;
    padding: 2rem var(--section-pad-x-mobile) 6rem;
  }

  .privacy-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    margin-bottom: 4rem;
    overflow: visible;
  }

  .privacy-index a {
    padding-right: 0.75rem;
  }
}

@media (max-width: 480px) {
  .privacypolicy-content > p:first-child {
    padding: 1.25rem;
  }
}
