.policy-page {
  background-color: var(--content-page-background, #000000);
  color: var(--content-page-foreground, #ffffff);
}

.policy-page .content-page__header--left {
  text-align: left;
  margin-inline: 0;
}

.policy-page__header {
  margin-bottom: 2.5rem;
}

.policy-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--content-page-link-color, #63e6be);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.policy-page__back:hover {
  color: var(--content-page-foreground, #ffffff);
}

.policy-page__back-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.policy-page__title {
  padding-left: 1rem;
  border-left: 3px solid var(--content-page-link-color, #63e6be);
  text-align: left;
}

.policy-page__subtitle {
  margin-inline: 0;
  text-align: left;
  max-width: 42rem;
}

.policy-page__layout {
  display: grid;
  gap: 1.25rem;
}

.policy-page__aside {
  min-width: 0;
}

.policy-page__aside[hidden] {
  display: none;
}

.policy-page__toc {
  padding: 1.25rem;
  border: 1px solid var(--content-page-card-border, #333333);
  border-radius: 12px;
  background-color: var(--content-page-card-background, #111111);
}

.policy-page__toc-label {
  margin: 0 0 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--content-page-meta-color, #888888);
}

.policy-page__toc-list {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.policy-page__toc-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--content-page-card-border, #333333);
  border-radius: 999px;
  color: var(--content-page-foreground, #ffffff);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease;
}

.policy-page__toc-link:hover {
  border-color: var(--content-page-link-color, #63e6be);
  color: var(--content-page-link-color, #63e6be);
}

.policy-page__main {
  min-width: 0;
}

.policy-page__body {
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--content-page-card-border, #333333);
  border-radius: 12px;
  background-color: var(--content-page-card-background, #111111);
}

.policy-page__sections {
  display: grid;
  gap: 1rem;
}

.policy-page__body.policy-page__body--enhanced {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.policy-page__section,
.policy-page__body:not(.policy-page__body--enhanced) {
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--content-page-card-border, #333333);
  border-radius: 12px;
  background-color: var(--content-page-card-background, #111111);
}

.policy-page__section > h2,
.policy-page__body:not(.policy-page__body--enhanced) > h2,
.policy-page__body h2 {
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--content-page-link-color, #63e6be);
  font-size: calc(var(--content-page-body-size-mobile, 16px) + 4px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--content-page-foreground, #ffffff);
  text-wrap: balance;
  scroll-margin-top: 6rem;
}

.policy-page__section > h3,
.policy-page__body h3 {
  margin: 1.5rem 0 0.625rem;
  font-size: calc(var(--content-page-body-size-mobile, 16px) + 2px);
  line-height: 1.3;
  font-weight: 700;
  color: var(--content-page-foreground, #ffffff);
}

.policy-page__section > h3:first-child,
.policy-page__body h3:first-child {
  margin-top: 0;
}

.policy-page__section > h4,
.policy-page__body h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: var(--content-page-body-size-mobile, 16px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--content-page-foreground, #ffffff);
}

.policy-page__section > p,
.policy-page__body p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--content-page-subtitle-color, #cccccc);
  text-wrap: pretty;
}

.policy-page__section > p:last-child,
.policy-page__body > p:last-child {
  margin-bottom: 0;
}

.policy-page__section :is(ul, ol),
.policy-page__body :is(ul, ol) {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.policy-page__section ul li,
.policy-page__body ul li {
  position: relative;
  padding-left: 1.125rem;
  line-height: 1.65;
  color: var(--content-page-subtitle-color, #cccccc);
}

.policy-page__section ul li::before,
.policy-page__body ul li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--content-page-link-color, #63e6be);
}

.policy-page__section ol,
.policy-page__body ol {
  counter-reset: policy-counter;
  padding-left: 0;
}

.policy-page__section ol > li,
.policy-page__body ol > li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.65;
  color: var(--content-page-subtitle-color, #cccccc);
  counter-increment: policy-counter;
}

.policy-page__section ol > li::before,
.policy-page__body ol > li::before {
  content: counter(policy-counter) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--content-page-link-color, #63e6be);
}

.policy-page__section ul ul,
.policy-page__section ol ol,
.policy-page__body ul ul,
.policy-page__body ol ol {
  margin-top: 0.625rem;
  margin-bottom: 0;
  padding-left: 0.75rem;
}

.policy-page__section a,
.policy-page__body a {
  color: var(--content-page-link-color, #63e6be);
  text-underline-offset: 0.15em;
}

.policy-page__section a:hover,
.policy-page__body a:hover {
  color: var(--content-page-foreground, #ffffff);
}

.policy-page__section strong,
.policy-page__body strong {
  color: var(--content-page-foreground, #ffffff);
  font-weight: 700;
}

.policy-page__section > blockquote,
.policy-page__body blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.125rem;
  border-left: 3px solid var(--content-page-link-color, #63e6be);
  border-radius: 0 8px 8px 0;
  background-color: color-mix(in srgb, var(--content-page-card-background, #111111) 70%, var(--content-page-foreground, #ffffff));
  color: var(--content-page-subtitle-color, #cccccc);
}

.policy-page__section > hr,
.policy-page__body hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--content-page-card-border, #333333);
}

.policy-page__section > table,
.policy-page__body table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.policy-page__section th,
.policy-page__section td,
.policy-page__body th,
.policy-page__body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--content-page-card-border, #333333);
  text-align: left;
  vertical-align: top;
}

.policy-page__section th,
.policy-page__body th {
  background-color: color-mix(in srgb, var(--content-page-card-background, #111111) 60%, var(--content-page-foreground, #ffffff));
  color: var(--content-page-foreground, #ffffff);
  font-weight: 700;
}

.policy-page__section td,
.policy-page__body td {
  color: var(--content-page-subtitle-color, #cccccc);
}

@media screen and (min-width: 750px) {
  .policy-page__layout:has(.policy-page__aside:not([hidden])) {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .policy-page__aside:not([hidden]) {
    display: block;
    position: sticky;
    top: 6rem;
  }

  .policy-page__toc-list {
    flex-direction: column;
    gap: 0.25rem;
    overflow: visible;
  }

  .policy-page__toc-link {
    display: block;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: 8px;
    white-space: normal;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--content-page-subtitle-color, #cccccc);
  }

  .policy-page__toc-link:hover {
    background-color: color-mix(in srgb, var(--content-page-link-color, #63e6be) 12%, transparent);
    color: var(--content-page-link-color, #63e6be);
  }

  .policy-page__section,
  .policy-page__body:not(.policy-page__body--enhanced) {
    padding: 1.5rem 1.75rem;
  }

  .policy-page__section > h2,
  .policy-page__body h2 {
    font-size: calc(var(--content-page-body-size-desktop, 17px) + 6px);
  }

  .policy-page__section > h3,
  .policy-page__body h3 {
    font-size: calc(var(--content-page-body-size-desktop, 17px) + 3px);
  }
}

@media screen and (max-width: 749px) {
  .policy-page__aside:not([hidden]) {
    display: block;
  }
}

/* Fallback when Shopify renders its default policy markup */
.template-policy,
body[class*='template-policy'] {
  background-color: #000000;
  color: #ffffff;
}

.template-policy .shopify-policy__container,
body[class*='template-policy'] .shopify-policy__container {
  max-width: 760px;
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4rem;
}

.template-policy .shopify-policy__title,
body[class*='template-policy'] .shopify-policy__title {
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #63e6be;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  color: #ffffff;
  text-align: left;
}

.template-policy .shopify-policy__body,
body[class*='template-policy'] .shopify-policy__body {
  padding: 1.5rem 1.75rem;
  border: 1px solid #333333;
  border-radius: 12px;
  background-color: #111111;
  color: #cccccc;
  line-height: 1.7;
}

.template-policy .shopify-policy__body h2,
.template-policy .shopify-policy__body h3,
body[class*='template-policy'] .shopify-policy__body :is(h2, h3) {
  color: #ffffff;
  padding-left: 0.75rem;
  border-left: 2px solid #63e6be;
}

.template-policy .shopify-policy__body a,
body[class*='template-policy'] .shopify-policy__body a {
  color: #63e6be;
}

.template-policy .shopify-policy__body strong,
body[class*='template-policy'] .shopify-policy__body strong {
  color: #ffffff;
}
