/* Heirloom legal / support static pages — unscoped (no Astro data-cid) */

body.legal-page {
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--beige) 100%);
}

body.legal-page--app main {
  padding-top: max(var(--s-4), env(safe-area-inset-top, 0px));
}

body.legal-page--app .static {
  padding-top: var(--s-4);
}

body.legal-page main {
  padding-bottom: var(--s-8);
}

.legal-page .masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: max(var(--s-4), env(safe-area-inset-top, 0px)) var(--s-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-2);
}

.legal-page .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
}

.legal-page .brand__word {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.static {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: var(--s-5) var(--s-8);
}

.static__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 253, 248, 0.72);
}

.static__nav a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.15rem 0;
}

.static__nav a:hover {
  color: var(--ink);
}

.static__nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.static__head {
  padding: var(--s-5) var(--s-5);
  margin-bottom: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.static__title {
  margin: 0;
  color: var(--ink);
}

.static__lede {
  margin: var(--s-3) auto 0;
  max-width: 38ch;
}

.static__updated {
  margin: var(--s-3) 0 0;
}

.static__card {
  padding: var(--s-5) var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-card);
  text-align: left;
  word-break: break-word;
}

.static__card h2 {
  margin: var(--s-6) 0 var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.static__card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.static__card h3 {
  margin: var(--s-4) 0 var(--s-2);
}

.static__card p {
  margin: 0 0 var(--s-4);
}

.static__card p:last-child {
  margin-bottom: 0;
}

.static__card a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.static__card a:hover {
  color: var(--pine-deep);
}

.static__card strong {
  color: var(--ink);
  font-weight: 600;
}

.static__foot {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-small);
}

.static__foot a {
  color: var(--pine);
  text-decoration: none;
}

.static__foot a:hover {
  text-decoration: underline;
}

/* FAQ blocks */
.faq__item {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}

.faq__item:first-of-type {
  padding-top: 0;
}

.faq__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq__q {
  margin: 0 0 var(--s-2);
}

.faq__a {
  margin: 0;
}

.faq__a a {
  color: var(--pine);
}

/* Contact page */
.contact-hero {
  margin-bottom: var(--s-5);
}

.contact-hero .eyebrow-label {
  display: block;
  margin-bottom: var(--s-2);
}

.contact-card {
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--s-4);
}

.contact-card p {
  margin: 0 0 var(--s-3);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.static__card a.contact-btn {
  color: #fdfbf4;
  text-decoration: none;
}

.static__card a.contact-btn:hover {
  color: #fff;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 1.35rem;
  border-radius: var(--r-pill);
  background: var(--pine-grad);
  color: #fdfbf4;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  margin-bottom: var(--s-3);
}

.contact-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.contact-info {
  background: rgba(196, 151, 58, 0.08);
  border: 1px solid rgba(196, 151, 58, 0.28);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}

.contact-info p {
  margin: 0 0 var(--s-3);
}

.contact-info ol {
  margin: var(--s-3) 0 0;
  padding-left: 1.25rem;
}

.contact-info li {
  margin-bottom: var(--s-3);
}

.contact-info li:last-child {
  margin-bottom: 0;
}

/* Restore page form */
.static__stack {
  display: grid;
  gap: var(--s-5);
}

.rform {
  width: 100%;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.field__label {
  display: block;
  margin-bottom: var(--s-2);
}

.field__input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: inherit;
}

.field__input:focus {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 1.5rem;
  background: var(--pine-grad);
  color: #fdfbf4;
  font-weight: 600;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-cta);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.cta--full {
  width: 100%;
}

.faq__title {
  margin: 0 0 var(--s-4);
}

.rform__msg[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .static__nav {
    gap: var(--s-2);
    padding: var(--s-3);
  }

  .static__head,
  .static__card,
  .contact-card,
  .contact-info {
    padding: var(--s-4);
  }
}
