/* Scoped to legal links so the existing landing-page layout stays intact. */
footer .legal-footer-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px 28px;width:min(1160px,calc(100% - 64px));margin:24px auto 0;padding:20px 0 16px;border-top:1px solid currentColor;color:inherit;font:inherit;font-size:13px;line-height:1.5;position:static}
footer .legal-footer-links a{display:inline-block;color:inherit;opacity:1;text-decoration:underline;text-underline-offset:.25em;white-space:normal;overflow-wrap:anywhere;padding:4px 0}
footer .legal-footer-links a:hover{text-decoration-thickness:2px}
footer .legal-footer-links a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@media(max-width:800px){footer .legal-footer-links{width:calc(100% - 40px);gap:10px 22px}}
@media print{footer .legal-footer-links{display:none}}

/* Match the published Soilrisk: copyright and legal links share the bottom row. */
footer .footer-bottom{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:baseline;font-size:13px}
footer [data-footer-legal]{display:block;min-width:0}
footer .footer-bottom .legal-footer-links{width:auto;max-width:none;margin:0;padding:0;border:0;justify-content:flex-end;gap:8px 22px;color:inherit;font-size:13px}
footer .footer-resources{margin:0 0 22px;font-size:13px}
footer .footer-resources a{text-decoration:underline;text-underline-offset:.25em}
.legal-shell-footer>.legal-width{display:block}
.legal-shell-footer .footer-bottom{border-top:1px solid #ffffff30;margin-top:24px;padding-top:22px}
@media(max-width:1000px){footer .footer-bottom{grid-template-columns:1fr;gap:16px}footer .footer-bottom .legal-footer-links{justify-content:flex-start}}
@media(max-width:650px){footer .footer-bottom .legal-footer-links{display:grid;grid-template-columns:1fr;gap:8px}}
