.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.footer-links a,
.policy a,
.policy-note a {
  color: var(--teal);
  font-weight: 800;
}

.policy {
  max-width: 900px;
}

.policy h1 {
  font-size: 42px;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 8px 0 20px;
}

.policy h2 {
  font-size: 22px;
  margin: 28px 0 8px;
}

.policy p {
  color: #536173;
}

.terms-check {
  align-items: flex-start;
  color: #536173;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.45;
  margin: 14px 0;
}

.terms-check input {
  flex: none;
  margin-top: 2px;
  width: auto;
}

.terms-check a {
  color: var(--teal);
}

.checkout-totals {
  border-block: 1px solid #dce5df;
  margin: 16px 0;
  padding: 10px 0;
}

.checkout-totals div,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
}

.checkout-totals .total {
  border-top: 1px solid #dce5df;
  font-weight: 900;
  margin-top: 6px;
  padding-top: 10px;
}

.receipt {
  max-width: 900px;
}

.receipt-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.receipt-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
}

.receipt-grid div {
  background: #f5f8f6;
  border-radius: 12px;
  padding: 14px;
}

.receipt-grid small,
.receipt-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.receipt-total {
  border-block: 2px solid #15251d;
  font-size: 22px;
  margin: 22px 0;
  padding: 16px 0;
}

@media (max-width: 720px) {
  .policy h1 {
    font-size: 31px;
  }

  .receipt-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  header,
  footer,
  .receipt-actions {
    display: none !important;
  }

  body,
  main,
  .receipt {
    background: #fff !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: none !important;
  }
}
