.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--blue); }

footer {
  display: grid;
  grid-template-columns: auto minmax(170px,.8fr) minmax(250px,1.2fr) auto auto;
  gap: clamp(20px,3vw,46px);
  align-items: center;
}
.footer-contact,
.footer-operator { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.footer-contact a { color: #fff; font-weight: 800; }
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--blue); }
.footer-operator strong { color: #fff; font-size: 12px; }
.footer-up { white-space: nowrap; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }

@media (max-width: 1050px) {
  footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  footer .brand--footer { flex: 0 0 auto; }
  footer .footer-contact,
  footer .footer-operator,
  footer .footer-legal { flex: 1 1 210px; min-width: 0; }
  footer .footer-up { margin-left: auto; }
}

.signup .legal-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #a9bcc4;
  cursor: pointer;
}
.signup .legal-check input {
  appearance: none;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid #64808b;
  background: transparent;
  display: grid;
  place-content: center;
}
.signup .legal-check input::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--ink);
  transform: scale(0);
  transition: transform .15s ease;
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 20%, 84% 6%, 39% 67%);
}
.signup .legal-check input:checked {
  border-color: var(--blue);
  background: var(--blue);
}
.signup .legal-check input:checked::before { transform: scale(1); }
.signup .legal-check input:focus-visible { outline: 3px solid rgba(8,174,237,.28); outline-offset: 3px; }
.signup .legal-check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.signup .form-privacy-note { margin: -8px 0 0 31px; color: #78919b; font-size: 11px; line-height: 1.45; }
.signup .form-privacy-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.signup .form-status { min-height: 20px; margin: -8px 0 0; color: #9fdcf2; font-size: 12px; line-height: 1.4; }
.signup .form-status.is-error { color: #ff9191; }
.signup form .button:disabled { cursor: wait; opacity: .62; transform: none; }

/* The confirmation occupies the existing modal instead of adding a grid row. */
.signup [hidden] { display: none !important; }
.signup:not([open]) { display: none; }
.signup.is-success[open] { display: block; height: min(560px, calc(100dvh - 32px)); overflow: hidden; }
.signup.is-success .signup__intro { display: none; }
.signup.is-success .signup__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 48px 24px;
  background: radial-gradient(circle at 50% 35%, #0a2a38, #061821 72%);
}
.signup.is-success .signup__success > span { flex-shrink: 0; }
.signup.is-success .signup__success h2 { font-size: clamp(32px, 6vw, 50px); }
.signup.is-success .signup__success p { max-width: 390px; }
.signup.is-success .signup__success .button { flex-shrink: 0; }
@media (max-height: 440px) {
  .signup.is-success .signup__success { justify-content: flex-start; }
}

.cookie-banner {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  width: min(610px, calc(100% - 44px));
  padding: 18px 20px;
  border: 1px solid rgba(8,174,237,.75);
  background: rgba(5,24,33,.98);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  gap: 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: #c6d5da; font-size: 13px; line-height: 1.45; }
.cookie-banner a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-accept {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  padding: 0 22px;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}
.cookie-accept:hover { background: #38c5fa; }

.legal-page { min-height: 100vh; background: #061821; color: #fff; }
.legal-topbar {
  height: 86px;
  padding: 0 clamp(20px,5vw,76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #061821;
}
.legal-topbar .brand img { width: 54px; height: 54px; }
.legal-back { color: #c4d2d7; font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.legal-back:hover { color: var(--blue); }
.legal-shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 100px; }
.legal-kicker { color: var(--blue); font: 900 14px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.legal-shell h1 { max-width: 850px; margin: 14px 0 22px; font: 900 clamp(42px,6vw,76px)/.96 var(--display); text-transform: uppercase; }
.legal-lead { max-width: 760px; color: #b8cad1; font-size: 18px; }
.legal-alert { margin: 34px 0; padding: 18px 20px; border-left: 3px solid #f13d3d; background: rgba(241,61,61,.08); color: #e7d8d8; }
.legal-content { margin-top: 48px; counter-reset: legal-section; }
.legal-content section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 16px; font: 900 clamp(25px,3vw,34px)/1.1 var(--display); text-transform: uppercase; }
.legal-content p,
.legal-content li { color: #b8cad1; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { color: #78919b; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 760px) {
  footer { display: flex; }
  footer .footer-contact { order: 2; }
  footer .footer-operator { order: 3; }
  footer .footer-legal { order: 4; }
  footer .footer-up { order: 5; }
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px; align-items: stretch; flex-direction: column; gap: 13px; }
  .cookie-accept { width: 100%; }
  .legal-topbar { height: 70px; }
  .legal-topbar .brand span { display: none; }
  .legal-shell { padding: 50px 0 70px; }
  .legal-shell h1 { font-size: clamp(32px,9.2vw,40px); overflow-wrap: break-word; }
  .legal-lead { font-size: 16px; }
}
