/* Legal and post-payment pages share the LP's typography, rules and buttons.
   Loaded only on these pages, after their legacy inline layout styles. */
* { box-sizing: border-box; }
body {
  font-family: var(--sphoto-font);
  color: var(--sphoto-text);
  background: var(--sphoto-paper);
  letter-spacing: .03em;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
a { color: var(--sphoto-text); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--sphoto-ink); outline-offset: 5px; }
.container, .terms-of-service, .thanks-container {
  box-shadow: none;
  border-radius: 0;
  font-family: var(--sphoto-font);
}
.container, .terms-of-service { max-width: 872px; line-height: 1.95; }
.container { border: 0; }
h1, .terms-of-service h1, .thanks-title {
  color: var(--sphoto-ink);
  font-weight: 700;
  line-height: 1.65;
  border-bottom-color: var(--sphoto-line);
  border-bottom-width: 1px;
}
h2, .terms-of-service h2 {
  color: var(--sphoto-ink);
  border-left: 0;
  border-bottom: 1px solid var(--sphoto-line);
  background: transparent;
  padding: 0 0 14px;
  border-radius: 0;
  line-height: 1.75;
}
.terms-of-service .last-updated, .footer-text { color: var(--sphoto-muted); }
.btn-back, .back-btn, .app-btn, .line-btn {
  border: 1px solid var(--sphoto-ink);
  border-radius: var(--sphoto-radius);
  background: var(--sphoto-ink);
  color: #fff;
  box-shadow: none;
  font-family: var(--sphoto-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.7;
  transition: background-color 180ms ease, color 180ms ease;
  min-height: 44px;
}
.btn-back:hover, .back-btn:hover, .app-btn:hover {
  background: var(--sphoto-hover);
  color: #fff;
  transform: none;
  box-shadow: none;
}
.line-btn { background: #fff; color: var(--sphoto-ink); }
.line-btn:hover { background: var(--sphoto-ink); color: #fff; transform: none; }
.thanks-wrapper { padding: 0 20px 56px; }
body > .page-logo { position: static; }
/* The thank-you layout previously fixed the logo over the card on small screens. */
body:has(.thanks-wrapper) { display: block; }
body:has(.thanks-wrapper) > .page-logo { margin: 28px 0 24px max(20px, calc((100% - 600px) / 2)); }
.thanks-container { border: 0; border-top: 1px solid var(--sphoto-line); animation: none; }
.thanks-title { border: 0; }
.next-box { border-color: var(--sphoto-line); border-radius: var(--sphoto-radius); background: var(--sphoto-surface); }
.step-list strong { color: var(--sphoto-ink); }
.later-text { background: var(--sphoto-surface); border-radius: var(--sphoto-radius); font-weight: 400; line-height: 1.9; }
.footer-text a { color: var(--sphoto-text); }
@media (max-width: 700px) {
  body { padding-left: 0; padding-right: 0; }
  .container, .terms-of-service { padding: 20px; }
  .thanks-wrapper { padding: 0 20px 32px; }
  .thanks-container { padding: 30px 0 0; }
  .btn-back, .back-btn { max-width: 100%; padding: 14px 20px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-back, .back-btn, .app-btn, .line-btn { transition: none; }
}
