/* the policy pages (reference/policies.md): web-v3's /terms-and-conditions. restyle freely */
.policy {
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
  padding-block: 2.5rem;
}

.policy__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding-inline: 1rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 999px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.policy__back::before {
  content: "←";
}

[dir="rtl"] .policy__back::before {
  content: "→";
}

.policy__title {
  margin: 2rem 0 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.policy__empty {
  margin-block-start: 2.5rem;
  opacity: 0.7;
}

/* the business's own html: headings, lists, tables, links and images from the dashboard's editor */
.policy__content {
  margin-block-start: 2.5rem;
  font-size: 1rem;
  line-height: 2;
  overflow-wrap: break-word;
}

.policy__content :is(p, li, td, blockquote) {
  color: color-mix(in srgb, currentColor 80%, transparent);
}

.policy__content :is(h1, h2, h3) {
  font-weight: 600;
  line-height: 1.3;
}

.policy__content h1 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.policy__content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
}

.policy__content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.policy__content p {
  margin-block: 1rem;
}

.policy__content :is(ul, ol) {
  margin-block: 1.25rem;
  padding-inline-start: 1.5rem;
}

.policy__content ul {
  list-style: disc;
}

.policy__content ol {
  list-style: decimal;
}

.policy__content li {
  margin-block: 0.5rem;
}

.policy__content a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy__content blockquote {
  margin: 1.5rem 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.policy__content img {
  max-width: 100%;
  height: auto;
  margin-block: 1.5rem;
}

.policy__content table {
  width: 100%;
  margin-block: 1.5rem;
  border-collapse: collapse;
}

.policy__content :is(th, td) {
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.policy__content th {
  background: color-mix(in srgb, currentColor 5%, transparent);
}

@media (min-width: 40rem) {
  .policy {
    padding-block: 4rem;
  }

  .policy__title {
    font-size: 2.25rem;
  }
}
