:root {
  --legal-bg: #eae6dd;
  --legal-ink: #080807;
  --legal-muted: #6d6960;
  --legal-brand: #f05235;
  --legal-panel: #f8f4ec;
  --legal-line: rgba(8, 8, 7, .16);
}

.legal-page {
  min-height: 100vh;
  margin: 0;
  background: var(--legal-bg);
  color: var(--legal-ink);
  font-family: "PP Neue Montreal", Arial, sans-serif;
  letter-spacing: 0;
}

.legal-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.legal-logo {
  color: var(--legal-ink);
  font-family: "Lektorat", Impact, sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: .9;
  text-decoration: none;
}

.legal-back {
  color: var(--legal-ink);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-title {
  max-width: 920px;
  margin: 0 0 20px;
  font-family: "Lektorat", Impact, sans-serif;
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 800;
  line-height: .92;
  text-transform: uppercase;
}

.legal-date {
  margin: 0 0 40px;
  color: var(--legal-muted);
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--legal-line);
  background: var(--legal-panel);
}

.legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card h2,
.legal-card h3 {
  margin: 0 0 16px;
  font-family: "Lektorat", Impact, sans-serif;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.legal-card h2 {
  font-size: clamp(28px, 5vw, 52px);
}

.legal-card h3 {
  font-size: clamp(22px, 3vw, 34px);
}

.legal-card p,
.legal-card li {
  font-size: 17px;
  line-height: 1.48;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-card ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a,
.legal-links a,
.cookie-banner a,
.legal-consent a {
  color: var(--legal-ink);
  text-decoration-color: var(--legal-brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-note {
  border-left: 5px solid var(--legal-brand);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
  font-size: 15px;
  text-transform: uppercase;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10020;
  display: none;
  width: min(520px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #1b1a18;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__title {
  margin: 0 0 8px;
  font-family: "Lektorat", Impact, sans-serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.cookie-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.4;
}

.cookie-banner a {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-banner__button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #fff;
  background: #fff;
  color: #1b1a18;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-banner__button.is-secondary {
  background: transparent;
  color: #fff;
}

.legal-consent {
  --consent-start-hint-space: 0px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin-top: calc(16px + var(--consent-start-hint-space));
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  position: relative;
  transform: translateY(18px);
  transition: margin-top .42s cubic-bezier(.165, .84, .44, 1);
}

.legal-consent.is-city-consent {
  margin-bottom: 14px;
}

.legal-consent[data-reveal-ready="true"] {
  animation: legalConsentReveal .62s cubic-bezier(.165, .84, .44, 1) forwards;
}

@keyframes legalConsentReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand, #f05235);
  flex: 0 0 auto;
}

.legal-consent label {
  cursor: pointer;
}

.legal-consent a {
  color: #080807;
  text-decoration-color: #080807;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-start-hint {
  position: absolute;
  bottom: calc(100% + 26px);
  left: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background: #080807;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity .26s ease, transform .36s cubic-bezier(.165, .84, .44, 1);
}

.consent-start-hint::before {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--brand, #f05235);
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(240, 82, 53, .38);
  content: "";
  animation: consentHintPulse 1.8s ease-out infinite;
}

.consent-start-hint__avatar {
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.consent-start-hint__message {
  min-width: 0;
}

.consent-start-hint__author {
  display: block;
  margin-bottom: 4px;
  color: var(--brand, #f05235);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.consent-start-hint__text {
  position: relative;
  display: block;
}

.consent-start-hint__measure {
  display: block;
  visibility: hidden;
}

.consent-start-hint__typed {
  position: absolute;
  inset: 0;
  display: block;
}

.consent-start-hint__typed::after {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: #fff;
  content: "";
  opacity: 0;
  vertical-align: -.14em;
}

.consent-start-hint.is-typing .consent-start-hint__typed::after {
  opacity: 1;
  animation: consentTypingCursor .42s steps(1, end) infinite;
}

.consent-start-hint__arrow {
  position: absolute;
  top: 100%;
  left: 8px;
  width: 2px;
  height: 26px;
  background: #080807;
  animation: consentArrowPoint .82s ease-in-out infinite;
}

.consent-start-hint__arrow::after {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #080807;
  border-bottom: 2px solid #080807;
  content: "";
  transform: rotate(45deg);
}

.legal-consent.is-consent-checked {
  --consent-start-hint-space: 0px !important;
}

.legal-consent.is-consent-checked .consent-start-hint {
  opacity: 0;
  transform: translateY(8px);
}

.city-choice-hint,
.photo-upload-hint {
  position: relative;
  bottom: auto;
  left: auto;
  display: none;
  width: min(360px, 100%);
  opacity: 0;
  transform: translateY(-8px);
}

.city-choice-hint.is-visible,
.photo-upload-hint.is-visible {
  display: grid;
  animation: cityChoiceHintReveal .42s cubic-bezier(.165, .84, .44, 1) forwards;
}

.city-choice-hint .consent-start-hint__arrow {
  right: 8px;
  left: auto;
  height: var(--city-choice-arrow-height, 18px);
  animation: cityChoiceArrowPoint .82s ease-in-out infinite;
}

.photo-upload-hint {
  width: min(var(--photo-upload-hint-width, 360px), 100%);
}

.photo-upload-hint .consent-start-hint__arrow {
  right: 8px;
  left: auto;
  height: var(--photo-upload-arrow-height, 18px);
  animation: photoUploadArrowPoint .82s ease-in-out infinite;
}

@keyframes consentHintPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 82, 53, .38);
  }

  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(240, 82, 53, 0);
  }
}

@keyframes consentTypingCursor {
  50% {
    opacity: 0;
  }
}

@keyframes consentArrowPoint {
  0%,
  100% {
    height: 21px;
  }

  50% {
    height: 26px;
  }
}

@keyframes cityChoiceHintReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cityChoiceArrowPoint {
  0%,
  100% {
    height: calc(var(--city-choice-arrow-height, 18px) - 5px);
  }

  50% {
    height: var(--city-choice-arrow-height, 18px);
  }
}

@keyframes photoUploadArrowPoint {
  0%,
  100% {
    height: calc(var(--photo-upload-arrow-height, 18px) - 5px);
  }

  50% {
    height: var(--photo-upload-arrow-height, 18px);
  }
}

@media (max-width: 600px) {
  .consent-start-hint {
    grid-template-columns: 40px minmax(0, 1fr);
    width: min(286px, calc(100vw - 32px));
    font-size: 11px;
  }

  .consent-start-hint__avatar {
    width: 40px;
    height: 40px;
  }

  .consent-start-hint__author {
    font-size: 11px;
  }

  .city-choice-hint {
    width: min(286px, 100%);
  }

  .photo-upload-hint {
    width: min(var(--photo-upload-hint-width, 286px), 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-start-hint::before,
  .consent-start-hint.is-typing .consent-start-hint__typed::after,
  .consent-start-hint__arrow,
  .city-choice-hint .consent-start-hint__arrow,
  .photo-upload-hint .consent-start-hint__arrow {
    animation: none;
  }
}

.field:disabled,
.button:disabled,
[data-change-photo]:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.site-legal-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 8, 7, .95);
  color: rgba(255, 255, 255, .58);
  font-family: "PP Neue Montreal", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .5s ease, transform .5s ease;
  backdrop-filter: blur(12px);
}

.site-legal-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  width: min(1180px, 100%);
}

.site-legal-footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration-color: rgba(240, 82, 53, .72);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-legal-footer-trigger {
  width: 100%;
  height: clamp(18px, 4svh, 32px);
  pointer-events: none;
}

@media (max-width: 720px) {
  body.mobile-form-flow {
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-form-flow > .page,
  body.mobile-form-flow > .page-wrapper {
    min-height: 100svh;
    overflow: visible !important;
    touch-action: pan-y;
  }

  body.mobile-form-flow .site-legal-footer-trigger {
    height: max(96px, calc(72px + env(safe-area-inset-bottom)));
  }

  .legal-title {
    font-size: clamp(34px, 10vw, 56px);
    overflow-wrap: anywhere;
  }

  .legal-shell {
    width: min(100% - 24px, 980px);
    padding-top: 22px;
  }

  .legal-top {
    margin-bottom: 36px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .site-legal-footer {
    min-height: 46px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    font-size: 9px;
  }

  .site-legal-footer__inner {
    justify-content: center;
    gap: 4px 9px;
  }

  .site-legal-footer-trigger {
    height: 24px;
  }
}
