.mess-consent {
  position: fixed;
  z-index: 18000;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  width: min(460px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(16px, 4vw, 23px);
  border: 1px solid #8874b6;
  border-radius: 16px;
  color: #f8f4ff;
  background: linear-gradient(156deg, #281d3f, #151020 66%);
  box-shadow: 0 18px 48px #0c061a90, inset 0 1px 0 #e9d7ff24;
  font: 450 14px/1.5 var(--body, system-ui, sans-serif);
}

.mess-consent[hidden], .mess-consent [hidden] { display: none !important; }
.mess-consent-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #987bb953;
  color: #c9b4f4;
  font: 650 10px/1.4 ui-monospace, monospace;
  letter-spacing: .13em;
}
.mess-consent-signal i {
  width: 20px;
  height: 9px;
  background: repeating-linear-gradient(90deg, #d2f487 0 2px, transparent 2px 4px);
  clip-path: polygon(0 65%, 22% 65%, 22% 44%, 44% 44%, 44% 22%, 66% 22%, 66% 0, 100% 0, 100% 100%, 0 100%);
}
.mess-consent-signal b { margin-inline-start: auto; }
.mess-consent h2 {
  margin: 13px 0 9px;
  font: 750 clamp(21px, 5vw, 28px)/1.12 var(--display, system-ui, sans-serif);
  letter-spacing: -.03em;
}
.mess-consent p { margin: 0 0 14px; color: #e3d9ee; }
.mess-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mess-consent-actions button {
  min-height: 44px;
  padding: 9px 7px;
  border: 1px solid #bfa8ec;
  border-radius: 7px;
  background: #312345;
  color: #faf5ff;
  font: 650 13px/1.25 var(--body, system-ui, sans-serif);
  cursor: pointer;
}
.mess-consent-actions button:hover { background: #47345f; }
.mess-consent-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
}
.mess-consent-links button, .mess-consent-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ddc8ff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mess-consent :is(button, a, input, h2):focus-visible,
.mess-legal-settings:focus-visible {
  outline: 2px solid #dbf8a1;
  outline-offset: 3px;
}
.mess-consent p.mess-consent-technical {
  margin-bottom: 4px;
  color: #dbf8a1;
  font-size: 12px;
}
.mess-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #987bb953;
  cursor: pointer;
}
.mess-consent-option small { display: block; color: #e3d9ee; font-size: 12px; }
.mess-consent-option input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #cbb0ff; }
.mess-consent-option + .mess-consent-actions { margin-top: 8px; }
.mess-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 18px;
  flex: 1 0 100%;
  border-top: 1px solid #ffffff40;
  padding-top: 12px;
  font-size: 13px;
}
.mess-legal-links a, .mess-legal-settings {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mess-policy-page .legal-copy h1 {
  font: 800 clamp(30px, 5vw, 56px)/1.1 var(--display, system-ui, sans-serif);
  letter-spacing: -.05em;
  margin: 0 0 24px;
}
.mess-policy-page .legal-copy h2 {
  font-size: clamp(20px, 3.8vw, 27px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 28px 0 12px;
}
.mess-policy-page .legal-main { padding-block: clamp(32px, 7vw, 80px); }
.mess-policy-page .header { flex-wrap: wrap; }
.mess-policy-page .language-nav { display: flex; gap: 5px; }
.mess-policy-page .language-nav a {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  font-size: 12px;
}
.mess-policy-page .language-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.mess-policy-page .sticker-nav a:nth-child(2) { font-size: 12px; }
.mess-policy-page .sticker-nav a:nth-child(2)::after { content: none; }
.mess-policy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mess-policy-table :is(th, td) {
  padding: 10px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.mess-policy-table-wrap { overflow-x: auto; }
.mess-policy-page .mess-legal-settings {
  padding: 7px 13px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 650;
}
.mess-media-choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 5px;
  padding: 6px 12px;
  background: #312345;
  border: 1px solid #bfa8ec;
  border-radius: 6px;
  color: #faf5ff;
  font: inherit;
  cursor: pointer;
}
