.policy-page {
  padding-block: var(--frontoffice-block-padding);
  background-color: var(--testimonials-bg);
}

.policy-divider {
  --shape-divider-color: var(--testimonials-bg);
}

.policy-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.policy-main,
.policy-card {
  min-width: 0;
  border: 1px solid #a9bfd0;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 47, 79, 0.12);
  overflow-wrap: anywhere;
}

.policy-main {
  background-color: #ffffff;
}

.policy-content {
  color: #334b5e;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
}

.policy-content :is(h1, h2, h3, h4, h5, h6) {
  margin: 2rem 0 1rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.policy-content :is(h1, h2) {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
}

.policy-content :is(h3, h4, h5, h6) {
  font-size: 1.25rem;
}

.policy-content > :first-child {
  margin-top: 0;
}

.policy-content > :last-child {
  margin-bottom: 0;
}

.policy-content :is(p, ul, ol) {
  margin-bottom: 1rem;
}

.policy-content :is(ul, ol) {
  padding-left: 1.5rem;
}

.policy-content li + li {
  margin-top: 0.5rem;
}

.policy-content strong {
  color: var(--text);
}

.policy-content a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.policy-content a:hover {
  color: var(--accent);
}

.policy-card {
  background-color: var(--accent);
  border-color: var(--accent-dark);
  color: var(--accent-soft);
}

.policy-contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-contact-list li {
  display: grid;
  gap: 0.35rem;
}

.policy-contact-list span {
  font-weight: 700;
}

.policy-contact-list a {
  color: #ffffff;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.policy-contact-list a:hover {
  color: var(--accent-soft);
}

@media (min-width: 992px) {
  .policy-shell:has(> .policy-aside) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .policy-card {
    position: sticky;
    top: 8rem;
    max-height: calc(100dvh - 9rem);
    overflow-y: auto;
  }
}
