/* Cookie banner and legal pages, in the black MAIO & CO. homepage style on every page. */
.cookie-banner {
  position: fixed; z-index: 80; left: 24px; bottom: 24px; width: min(520px, calc(100% - 48px));
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: #111110; color: #f4f1e7; border: 1px solid #f4f1e733; border-radius: 22px 22px 22px 6px;
  box-shadow: 10px 10px 0 #f4f1e71f, 0 24px 60px #0008; padding: 34px 28px 26px;
  font-family: Arial, Helvetica, sans-serif; animation: cookieIn .45s cubic-bezier(.2,.8,.2,1) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-stripe { position: absolute; inset: 0 0 auto; display: flex; height: 8px; border-radius: 22px 22px 0 0; overflow: hidden; }
.cookie-stripe span { flex: 1; background: var(--c); }
.cookie-x {
  position: absolute; top: 20px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: #f4f1e7; border: 1px solid #f4f1e755; font-size: 16px; line-height: 1;
}
.cookie-x:hover { background: #f4f1e7; color: #111110; }
.cookie-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; opacity: .65; margin: 0 0 14px; }
.cookie-banner h2 {
  font-family: ImpactLocal, Impact, 'Arial Narrow', sans-serif; font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(36px, 5vw, 50px); line-height: .95; margin: 0 52px 16px 0; color: #f4f1e7;
}
.cookie-banner h2 em { -webkit-text-stroke: 1px #f4f1e7; color: transparent; }
.cookie-banner #cookie-text { font-size: 14px; line-height: 1.65; margin: 0; opacity: .85; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-prefs { display: grid; gap: 10px; margin-top: 20px; }
.cookie-prefs[hidden] { display: none; }
.cookie-option {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; cursor: pointer;
  border: 1px solid #f4f1e733; border-radius: 12px; font-size: 13px; line-height: 1.5;
}
.cookie-option strong { display: block; font-size: 11px; letter-spacing: .1em; margin-bottom: 3px; }
.cookie-option span { opacity: .85; }
.cookie-option input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #f9e329; cursor: pointer; }
.cookie-option input:disabled { cursor: not-allowed; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.cookie-btn {
  min-height: 48px; padding: 14px 18px; border-radius: 100px; border: 1px solid #f4f1e7;
  background: #f4f1e7; color: #111110; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  transition: background .2s, color .2s, transform .2s;
}
.cookie-btn.ghost { background: transparent; color: #f4f1e7; border-color: #f4f1e799; }
.cookie-btn:hover { background: #f9e329; border-color: #f9e329; color: #111110; transform: translateY(-2px); }
.cookie-btn[data-consent="reject"] { grid-column: 1; grid-row: 1; }
.cookie-btn[data-consent="accept"] { grid-column: 2; grid-row: 1; }
.cookie-custom, .cookie-save { grid-column: 1 / -1; }
.cookie-btn[hidden] { display: none; }
.cookie-banner :focus-visible { outline: 3px solid #f9e329; outline-offset: 3px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } .cookie-btn:hover { transform: none; } }
@media (max-width: 760px) {
  .cookie-banner {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto;
    max-height: calc(100dvh - 100px); padding: 30px 18px 18px; border-radius: 20px 20px 20px 6px; box-shadow: 6px 6px 0 #f4f1e71f;
  }
  /* Store pages keep their bottom action bar visible under the banner. */
  body:has(.mobile-actions) .cookie-banner { bottom: calc(74px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 170px); }
  .cookie-x { top: 18px; right: 12px; }
  .cookie-banner h2 { font-size: clamp(32px, 10vw, 42px); }
  .cookie-banner #cookie-text { font-size: 13px; }
}

/* Footer legal links. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 16px; font-size: 10px; font-weight: 700; letter-spacing: .065em; opacity: .6; }
.footer-legal a, .footer-legal button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .footer-legal a, .footer-legal button { min-height: 44px; display: inline-flex; align-items: center; } }

/* Privacy and cookie policy pages: full-width header, sticky index beside the text. */
.legal-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px 6%; align-items: end; padding-bottom: 40px; border-bottom: 3px solid var(--ink); }
.legal-page h1 { font-size: clamp(64px, 9vw, 150px); line-height: .92; }
.legal-page h1 em { -webkit-text-stroke: 1px var(--ink); color: transparent; }
.legal-meta { display: grid; gap: 18px; justify-self: end; justify-items: end; }
.legal-switch { justify-content: flex-end; }
.legal-updated { font-size: 12px; opacity: .65; }
.legal-switch { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-switch a, .legal-switch button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px; border-radius: 100px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em;
}
.legal-switch a[aria-current="page"], .legal-switch a:hover, .legal-switch button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 7%; align-items: start; margin-top: 56px; }
.legal-toc { position: sticky; top: 120px; max-height: calc(100vh - 150px); overflow-y: auto; }
.legal-toc > p { font-size: 10px; font-weight: 700; letter-spacing: .12em; opacity: .65; margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legal-toc a {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.35; transition: background .2s, color .2s, padding .2s;
}
.legal-toc a span { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em; opacity: .6; }
.legal-toc a:hover { background: var(--ink); color: var(--paper); padding-left: 12px; }
.legal-body { font-size: 17px; line-height: 1.75; max-width: 860px; }
.legal-body .legal-lead { font-size: 22px; line-height: 1.55; margin: 0 0 10px; opacity: 1; }
.legal-body h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; margin: 64px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-body h3 { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 28px 0 6px; }
.legal-body p { margin: 0 0 14px; opacity: .85; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; opacity: .85; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-body code { font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.legal-body .pill { margin: 6px 0; }
.legal-table-wrap { max-width: 100%; overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-table th { text-align: left; font-size: 10px; letter-spacing: .1em; padding: 16px 18px; background: var(--panel); }
.legal-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.legal-todo { background: #f9e329; color: #111110; padding: 0 4px; font-weight: 700; }
@media (max-width: 1000px) {
  .legal-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .legal-meta { justify-self: start; justify-items: start; }
  .legal-switch { justify-content: flex-start; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; }
  .legal-toc { position: static; max-height: none; margin-bottom: 20px; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 760px) {
  .legal-head { gap: 26px; padding-bottom: 30px; }
  .legal-page h1 { font-size: clamp(50px, 15vw, 80px); }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .legal-toc a { min-height: 44px; align-items: center; }
  .legal-body { font-size: 15px; }
  .legal-body .legal-lead { font-size: 18px; }
  .legal-body h2 { margin-top: 44px; padding-top: 22px; }
  .legal-table { min-width: 560px; font-size: 13px; }
}
