/* AI Week fixes on top of the bought theme (public/assets/theme/css/custom.css, which is not
   in this repo). Loaded after the theme by editions/aiweek/partials/_head.blade.php. */

/* Footer link rows. The theme sets them as one centred flex row that never wraps, so on a
   phone "Privacy Policy" and "Cookie settings" ran off both edges and every link broke word
   by word. The theme also capitalises every word ("Terms Of Use"); the policy titles are
   written in Control > Pages and show as written. */
.main-footer .footer-links ul {
    flex-wrap: wrap;
    row-gap: 6px;
}
.main-footer .footer-legal li {
    text-transform: none;
}
.main-footer .footer-legal button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.main-footer .footer-legal button:hover,
.main-footer .footer-legal button:focus-visible {
    color: var(--panel-color);
}

@media (max-width: 767.98px) {
    .main-footer .footer-links ul {
        column-gap: 22px;
    }
    /* The "|" separators only make sense on one line. */
    .main-footer .footer-links .sep {
        display: none;
    }
    .main-footer .footer-links li,
    .main-footer .footer-legal button {
        font-size: 15px;
        line-height: 1.4;
    }
    .main-footer .footer-links a,
    .main-footer .footer-legal button {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
    .main-footer .footer-copyright-text p {
        font-size: 14px;
    }
}
