/* Local preview bundle. Shared roles are normalized by redesign/theme.css. */
/* Shared source segment, adapted to the preview token system. */
/* Shared primary-site feedback and legal layout. Keep the active site palette. */
.footer.footer-shared {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface-secondary);
  font-size: 14px;
}
.footer.footer-shared .wrap {
  width: min(1180px, calc(100% - 44px));
  max-width: none;
}
.footer.footer-shared .footer-feedback {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr);
  gap: 44px;
  margin-bottom: 30px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}
.footer.footer-shared .footer-feedback-copy .kicker { font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.footer.footer-shared .footer-feedback-copy h2 {
  margin: 8px 0 10px;
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 34px);
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.footer.footer-shared .footer-feedback-copy p {
  max-width: 420px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.footer.footer-shared .feedback-form {
  display: grid;
  min-width: 0;
  gap: 14px;
  line-height: 1.6;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.footer.footer-shared .feedback-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.footer.footer-shared .feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.footer.footer-shared .feedback-form label > span {
  font-size: inherit;
  font-weight: inherit;
}
.footer.footer-shared .feedback-form input:not([type=checkbox]):not([type=hidden]),
.footer.footer-shared .feedback-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--text-primary);
  background: var(--surface);
  font: inherit;
  line-height: 1.6;
}
.footer.footer-shared .feedback-form textarea {
  min-height: 118px;
  resize: vertical;
}
.footer.footer-shared .feedback-form :is(input, textarea):focus {
  border-color: var(--focus);
  outline: 3px solid color-mix(in srgb, var(--focus) 25%, transparent);
  outline-offset: 2px;
}
.footer.footer-shared .feedback-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.footer.footer-shared .feedback-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--focus);
}
.footer.footer-shared .feedback-consent label { display: inline; color: inherit; font: inherit; }
.footer.footer-shared .feedback-consent a { color: var(--text-primary); font-weight: 700; text-underline-offset: 2px; }
.footer.footer-shared .feedback-actions { display: flex; align-items: end; justify-content: flex-end; gap: 18px; }
.footer.footer-shared .feedback-submit {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.footer.footer-shared .feedback-status { min-height: 20px; margin: 0; font-weight: 700; }
.footer.footer-shared .footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 0; }
.footer.footer-shared .footer-brand { max-width: 430px; display: grid; gap: 4px; font-size: 14px; line-height: 1.55; }
.footer.footer-shared strong { display: block; margin-bottom: 5px; color: var(--text-primary); font-size: 14px; }
.footer.footer-shared .footer-links { display: grid; justify-items: end; gap: 8px; }
.footer.footer-shared .footer-link-row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px; }
.footer.footer-shared .footer-meta { max-width: 620px; display: grid; justify-items: end; gap: 12px; text-align: right; font-size: 14px; line-height: 1.55; }
.footer.footer-shared :is(.footer-details, .footer-alpha) { color: var(--text-muted); font-size: 13px; }
.footer.footer-shared .footer-link-button { font-size: inherit; }
.footer.footer-shared .footer-email { overflow-wrap: anywhere; }
.footer.footer-shared .legal-contact { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.footer.footer-shared .legal-contact a { overflow-wrap: anywhere; color: var(--text-primary); font-weight: 700; }
.footer.footer-shared .test-feedback-note { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }

.site-balance.shared-legal-page .page-head .wrap,
.site-balance.shared-legal-page .legal-band > .narrow {
  width: min(880px, calc(100% - 44px));
  max-width: none;
}
.site-balance.shared-legal-page .legal-band { padding-top: 34px; }
.site-balance.shared-legal-page .legal-document {
  max-width: none;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(15 29 36 / 6%);
}
.site-balance.shared-legal-page .legal-document > section { padding: 0; margin: 0; border-bottom: 0; }
.site-balance.shared-legal-page .legal-document > section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--border); }
.site-balance.shared-legal-page .legal-document h2 { margin: 0 0 16px; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; letter-spacing: -.025em; }
.site-balance.shared-legal-page .legal-document h3 { margin: 24px 0 10px; font-size: 18px; }
.site-balance.shared-legal-page .legal-document :is(p, li) { font-size: 16px; line-height: 1.6; }
.site-balance.shared-legal-page .legal-document .legal-lead { color: var(--text-primary); font-size: 18px; }
.site-balance.shared-legal-page .legal-document :is(p, ul) { margin: 0 0 14px; }
.site-balance.shared-legal-page .legal-document ul { padding-left: 24px; }
.site-balance.shared-legal-page .legal-document li + li { margin-top: 7px; }
.site-balance.shared-legal-page .legal-details { margin: 20px 0 0; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); border: 1px solid var(--border); border-radius: 12px; }
.site-balance.shared-legal-page .legal-details :is(dt, dd) { padding: 12px 15px; }
.site-balance.shared-legal-page .legal-details dt { background: var(--surface-secondary); font-weight: 700; }
.site-balance.shared-legal-page .legal-details dd { background: var(--surface); }
.site-balance.shared-legal-page .processing-grid { gap: 14px; }
.site-balance.shared-legal-page .test-legal-note { margin: 0 0 24px; padding: 16px 20px; border-left: 3px solid var(--border-strong); color: var(--text-secondary); background: var(--surface-secondary); font-size: 14px; line-height: 1.7; }
.site-balance.shared-legal-page .test-legal-note p { margin: 0; }
.site-balance.shared-legal-page .test-legal-note p + p { margin-top: 8px; }
@media (max-width: 760px) {
  .footer.footer-shared :is(.footer-feedback, .feedback-fields) { grid-template-columns: 1fr; }
  .footer.footer-shared .footer-feedback { gap: 28px; }
  .footer.footer-shared .footer-inner { flex-direction: column; align-items: stretch; }
  .footer.footer-shared :is(.footer-links, .footer-meta) { justify-items: start; text-align: left; }
  .footer.footer-shared .footer-link-row { justify-content: flex-start; flex-direction: row; align-items: baseline; }
  .footer.footer-shared .footer-link-separator { display: inline; }
  .footer.footer-shared .feedback-actions { flex-direction: column; align-items: stretch; }
  .footer.footer-shared .feedback-submit { width: 100%; }
  .footer.footer-shared .legal-contact { flex-direction: column; align-items: flex-start; }
  .site-balance.shared-legal-page .legal-document { padding: 22px 18px; border-radius: 13px; }
  .site-balance.shared-legal-page :is(.legal-details, .processing-grid) { grid-template-columns: 1fr; }
}

/* Shared source segment, adapted to the preview token system. */
.form-draft-note { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-secondary); color: var(--text-secondary); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.form-draft-note p { margin: 0; font-size: inherit; line-height: inherit; }
.form-draft-note .form-draft-choice { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 0; color: var(--text-primary); font-size: 14px; font-weight: 500; cursor: pointer; }
.form-draft-choice input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--brand); }
.form-draft-note .form-draft-status:not(:empty) { margin-top: 7px; }
.form-draft-note .form-draft-remove { min-height: 44px; margin: 6px 0 0; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: var(--brand); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-draft-note button:focus-visible, .form-draft-note input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.form-draft-note [hidden] { display: none; }

