.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 108px;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
}

.page-emblem {
  position: absolute;
  top: 50%;
  right: -28vh;
  transform: translateY(-50%);
  height: 80vh;
  width: auto;
  max-width: none;
  opacity: 0.08;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.legal-page .section-label-wrapper {
  margin-bottom: 48px;
}

.legal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 70ch;
}

.legal-body h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 18px;
}

.legal-cta {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  align-self: flex-start;
  margin-top: 40px;
}

.legal-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--t-slow) var(--ease);
}

.legal-cta:hover::after {
  width: 100%;
}

.legal-fine {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-muted);
  margin-top: 32px;
}

@media (max-width: 767px) {
  .legal-page     { padding-top: 88px; padding-bottom: 64px; }
  .legal-body h2  { font-size: 21px; }
  .legal-body p   { font-size: 16px; }

  .page-emblem { display: none; }
}

/* /legal/eula and /legal/notices: the kit's texts keep their own casing (third-party names,
   license titles, the key format), and long paths and urls wrap instead of widening the page */
.legal-verbatim { text-transform: none; overflow-wrap: anywhere; }

/* the store's own pages (/refunds, /legal/privacy, /legal/terms): one small table, inline code */
.legal-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.legal-table { border-collapse: collapse; width: 100%; }
.legal-table th,
.legal-table td { border-bottom: 1px solid var(--color-rule); padding: 10px 20px 10px 0; text-align: left; vertical-align: top;
                  font-size: 15px; font-weight: 300; line-height: 1.5; }
.legal-table th { font-weight: 500; }
.legal-verbatim code { font-family: inherit; color: var(--color-muted); }
@media (max-width: 767px) {
  .legal-table th,
  .legal-table td { font-size: 14px; padding: 8px 12px 8px 0; }
}
