/* Legal pages (Terms of Use, Privacy Policy, Disclaimer, Cookie Policy, Legal): template LegalRedesigned.aspx.
   Same type and colours as the new account pages (account-pages/account.css). The text itself is edited in Kentico;
   the classes mmc-legal-updated, mmc-legal-lead, mmc-legal-box and mmc-legal-cards can be used in it. */

.mmc-legal, .mmc-legal * { box-sizing: border-box; }
.mmc-legal { font-family: 'Noto Sans', sans-serif; color: #323231; background: #fff; }
/* Same content width as the site header and footer at every screen size (Ray, 10 Nov): 1174px with 20px sides. */
.mmc-legal__wrap { width: 100%; max-width: calc(1174px + 40px); margin: 0 auto; padding: 0 20px; }

/* Heading band with the row of documents */
.mmc-legal__head { background: #faf8f5; border-bottom: 1px solid #ebe7e0; padding-top: 56px; }
.mmc-legal__kicker { font: 700 12px/1 'Noto Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #f2811d; margin-bottom: 12px; }
.mmc-legal__h1 { font: 400 44px/1.15 'Noto Sans', sans-serif; letter-spacing: -.01em; color: #15161a; margin: 0 0 30px; }
.mmc-legal__docs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.mmc-legal__docs::-webkit-scrollbar { display: none; }
.mmc-legal__doc {
    flex: none; display: block; padding: 13px 20px 12px; border: 1px solid transparent; border-bottom: none;
    border-radius: 10px 10px 0 0; font: 500 15px/1.2 'Noto Sans', sans-serif; color: #6f6d68; text-decoration: none;
    white-space: nowrap; transition: color .15s, background .15s;
}
.mmc-legal__doc:hover { color: #15161a; background: rgba(255,255,255,.6); }
.mmc-legal__doc.is-active { background: #fff; border-color: #ebe7e0; color: #15161a; font-weight: 600; box-shadow: inset 0 3px 0 #f2811d; }
.mmc-legal__doc:focus-visible { outline: 2px solid #f2811d; outline-offset: 2px; }

/* Contents and text */
.mmc-legal__body { display: flex; align-items: flex-start; gap: 64px; padding-top: 52px; padding-bottom: 96px; }
.mmc-legal__toc { flex: 0 0 220px; position: sticky; top: 24px; }
.mmc-legal__toc[hidden] { display: none; }
.mmc-legal__toc-title { display: block; list-style: none; cursor: default; font: 700 12px/1 'Noto Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #8a8a8e; margin-bottom: 14px; }
.mmc-legal__toc-title::-webkit-details-marker { display: none; }
.mmc-legal__toc-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid #ebe7e0; }
.mmc-legal__toc-list a {
    display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
    font: 400 14px/1.45 'Noto Sans', sans-serif; color: #6f6d68; text-decoration: none;
}
.mmc-legal__toc-list a:hover { color: #15161a; border-left-color: #d8d6d1; }
.mmc-legal__toc-list a.is-current { color: #15161a; font-weight: 600; border-left-color: #f2811d; }

.mmc-legal__article { flex: 1; min-width: 0; max-width: 760px; font: 400 16px/1.85 'Noto Sans', sans-serif; color: #323231; }
.mmc-legal__article p { margin: 0 0 16px; }
.mmc-legal__article h2 {
    font: 600 22px/1.35 'Noto Sans', sans-serif; color: #15161a; margin: 44px 0 14px; padding-top: 32px;
    border-top: 1px solid #ebe7e0; scroll-margin-top: 24px;
}
.mmc-legal__article h3 { font: 600 17px/1.5 'Noto Sans', sans-serif; color: #15161a; margin: 26px 0 8px; }
.mmc-legal__article ul, .mmc-legal__article ol { margin: 0 0 18px; padding-left: 22px; }
.mmc-legal__article li { margin: 6px 0; padding-left: 4px; }
.mmc-legal__article ul li::marker { color: #f2811d; }
.mmc-legal__article strong, .mmc-legal__article b { font-weight: 600; color: #15161a; }
.mmc-legal__article a { color: #323231; text-decoration: underline; text-decoration-color: #f2811d; text-underline-offset: 3px; word-break: break-word; }
.mmc-legal__article a:hover { color: #f2811d; }
.mmc-legal__article hr { display: none; }

.mmc-legal__article .mmc-legal-updated {
    display: inline-block; margin: 0 0 22px; padding: 5px 13px; border-radius: 999px; background: #fdf2e7;
    border: 1px solid #f6d8b6; font: 500 13px/1.4 'Noto Sans', sans-serif; color: #96692a;
}
.mmc-legal__article .mmc-legal-lead { font-size: 18px; line-height: 1.75; color: #323231; margin-bottom: 20px; }
.mmc-legal__article .mmc-legal-box { background: #faf8f5; border: 1px solid #ebe7e0; border-radius: 12px; padding: 20px 24px; margin: 6px 0 20px; }
.mmc-legal__article .mmc-legal-box p:last-child, .mmc-legal__article .mmc-legal-box ul:last-child { margin-bottom: 0; }
.mmc-legal__article .mmc-legal-box + .mmc-legal-box { margin-top: -6px; }

/* Cards on the Legal page */
.mmc-legal__article .mmc-legal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 8px 0 24px; }
.mmc-legal__article .mmc-legal-cards a {
    display: block; padding: 22px 24px; border: 1px solid #ebe7e0; border-radius: 12px; background: #fff;
    text-decoration: none; color: #323231; transition: border-color .15s, box-shadow .15s;
}
.mmc-legal__article .mmc-legal-cards a:hover { border-color: #f2811d; box-shadow: 0 6px 20px rgba(17,18,23,.06); color: #323231; }
.mmc-legal__article .mmc-legal-cards strong { display: block; font: 600 18px/1.35 'Noto Sans', sans-serif; color: #15161a; margin-bottom: 6px; }
.mmc-legal__article .mmc-legal-cards span { display: block; font: 400 14.5px/1.6 'Noto Sans', sans-serif; color: #6f6d68; }

@media (max-width: 900px) {
    .mmc-legal__body { display: block; padding-top: 32px; padding-bottom: 64px; }
    .mmc-legal__toc { position: static; margin-bottom: 28px; padding: 0 20px; background: #faf8f5; border: 1px solid #ebe7e0; border-radius: 12px; }
    .mmc-legal__toc-title { cursor: pointer; margin: 0; padding: 17px 0; display: flex; justify-content: space-between; align-items: center; }
    .mmc-legal__toc-title::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #8a8a8e; border-bottom: 2px solid #8a8a8e; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
    .mmc-legal__toc[open] .mmc-legal__toc-title::after { transform: rotate(-135deg); margin-top: 4px; }
    .mmc-legal__toc-list { border-left: none; padding-bottom: 14px; }
    .mmc-legal__toc-list a { margin-left: 0; padding: 5px 0; border-left: none; }
}
@media (max-width: 600px) {
    .mmc-legal__head { padding-top: 36px; }
    .mmc-legal__h1 { font-size: 32px; margin-bottom: 22px; }
    .mmc-legal__doc { padding: 11px 14px 10px; font-size: 14px; }
    .mmc-legal__article { font-size: 15.5px; }
    .mmc-legal__article h2 { font-size: 20px; margin-top: 36px; padding-top: 26px; }
}
