/* The legacy layouts do not load new-style.css because its page-wide resets
   also affect their headers and content. Style the shared section locally. */
[data-legacy-inner-footer] [data-ff-footer] {
  display: block !important; /* The account layout hides generic footer elements. */
  position: relative;
  padding: 64px 0 48px;
  background: #003e04;
  color: white;
  font: 400 16px/24px Lexend, sans-serif;
  letter-spacing: normal;

  &, *, *::before, *::after { box-sizing: border-box; }
  > .container { width: 100%; max-width: 1440px; margin: auto; padding: 0 48px; }
  > .container > .content { display: block; width: 100%; max-width: 1340px; margin: 0; }
  :is(h3, p, ul, li, summary, button, input) { margin: 0; font-family: inherit; letter-spacing: inherit; }
  ul { list-style: none; padding: 0; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  .ff-social, [role="status"]:empty { display: none; }
  .ff-footer-main { display: grid; grid-template-columns: minmax(0,61.436%) minmax(0,1fr); row-gap: 72px; }
  .ff-footer-brand, .ff-footer-credit { display: contents; }
  .ff-footer-logo { width: min(100%,564.24px); aspect-ratio: 564.24 / 86; }
  .ff-footer-logo picture { display: block; width: 100%; height: 100%; }
  .ff-footer-logo img { width: 100%; height: auto; }
  .ff-newsletter { display: grid; align-content: start; gap: 16px; width: min(100%,406px); }
  .ff-newsletter label { color: #d4edcd; font-size: 16px; line-height: 22px; font-weight: 600; text-transform: uppercase; }
  .ff-newsletter > div { display: flex; height: 48px; border: 1px solid #eee; border-radius: 100px; background: #fef9f6; }
  .ff-newsletter input { flex: 1; min-width: 0; padding: 10px 14px 10px 20px; border: 0; border-radius: inherit; background: transparent; color: #1b1c1e; font-size: 18px; line-height: 28px; }
  .ff-newsletter button { flex: 0 0 48px; height: 48px; margin: -1px; border: 1px solid #eee; border-radius: 50%; background: white; font-size: 24px; cursor: pointer; }
  .ff-footer-links { grid-column: 1/-1; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 32px; }
  .ff-footer-links details:nth-child(1) { order: 1; }
  .ff-footer-links details:nth-child(3) { order: 2; }
  .ff-footer-links details:nth-child(2) { order: 3; }
  .ff-footer-links details:nth-child(5) { order: 4; }
  .ff-footer-links details:nth-child(4) { order: 5; }
  .ff-footer-links li + li { margin-top: 12px; }
  .ff-footer-links li a { font-size: 16px; line-height: 24px; font-weight: 600; }
  .ff-footer-account { display: flex; justify-content: center; padding-block: 64px; }
  .ff-footer-account .ff-button { display: grid; place-items: center; width: min(307px,100%); min-height: 52px; padding: 12px 32px; border-radius: 64px; background: #479338; color: white; font-weight: 600; }
  .ff-footer-bottom { display: flex; align-items: center; gap: .25em; border-top: 1px solid #ffffff1a; padding-top: 32px; }
  .ff-footer-designer-credit { margin-right: auto; }
  .ff-footer-designer-credit a { text-decoration: underline; }
  .ff-social-icons { order: 1; display: flex; gap: 20px; }
  .ff-social-icons img { width: 32px; height: 32px; }
  .ff-footer-credit br { display: none; }
  @media (hover: hover) {
    .ff-footer-links a:hover, .ff-footer-designer-credit a:hover { color: #fece00; }
    .ff-newsletter button:hover { background: #fece00; }
    .ff-footer-account .ff-button:hover { background: #569556; }
    .ff-social-icons a:hover { opacity: .7; }
  }
  @media (width < 992px) {
    .ff-footer-main { grid-template-columns: 1fr; row-gap: 48px; }
    .ff-footer-brand { display: block; }
    .ff-footer-logo, .ff-newsletter { width: min(100%,358px); }
    .ff-newsletter { margin-top: 32px; }
  }
  @media (width < 768px) {
    padding-block: 56px 48px;
    > .container { padding-inline: 16px; }
    .ff-footer-logo { margin-top: 1px; aspect-ratio: 358 / 40.72; }
    .ff-footer-links { grid-template-columns: 1fr; gap: 0; }
    .ff-footer-links details { border-bottom: 1px solid #ffffff1a; }
    .ff-footer-links details:nth-child(n+4) { display: none; }
    .ff-footer-links details:nth-child(2) { border-bottom: 0; }
    .ff-footer-links summary { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 32px; color: #d4edcd; font-size: 18px; line-height: 28px; font-weight: 600; list-style: none; cursor: pointer; }
    .ff-footer-links summary::-webkit-details-marker { display: none; }
    .ff-footer-links details:first-child summary { padding: 0 0 16px; }
    .ff-footer-links details:nth-child(2) > :is(summary,ul) { padding-bottom: 0; }
    .ff-footer-links details[open] > summary { padding-bottom: 16px; }
    .ff-footer-links details > ul { padding-bottom: 32px; }
    .ff-footer-links details:first-child > ul { padding-bottom: 34px; }
    .ff-footer-chevron { transition: transform .18s ease; }
    details[open] > summary:not([aria-expanded="false"]) .ff-footer-chevron { transform: rotate(180deg); }
    .ff-footer-account { padding-block: 32px 48px; }
    .ff-footer-account .ff-button { width: 100%; }
    .ff-footer-bottom { flex-direction: column; align-items: start; gap: 16px; }
    .ff-social-icons { order: 0; margin-bottom: 8px; }
    .ff-footer-credit { display: grid; gap: 8px; }
    .ff-footer-credit:has(.ff-box-credit-brand) > p:first-child { display: none; }
    .ff-footer-credit > :is(.ff-box-credit-brand,.ff-box-credit-copyright) { display: block; }
    .ff-box-credit-brand { grid-row: 1; }
    .ff-footer-designer-credit { grid-row: 2; }
    .ff-box-credit-copyright { grid-row: 3; margin-top: 16px; }
  }
}
