.cms-legal-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 8px 2px;
  border-top: 1px solid #1d2d37;
  font-size: 10px;
}

.cms-legal-links a {
  color: #778b95;
  text-decoration: none;
}

.cms-legal-links a:hover {
  color: #ffb21a;
}

.cookie-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  width: min(560px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 17px 18px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  border: 1px solid #46616e;
  border-top: 3px solid #e89a17;
  border-radius: 10px;
  background: linear-gradient(145deg, #11222c, #09141c);
  color: #dce6ea;
  box-shadow: 0 20px 70px #000c;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice b {
  color: #f2ad22;
  font-size: 15px;
}

.cookie-notice p {
  margin: 5px 0 0;
  color: #91a2aa;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cookie-notice-actions a,
.cookie-notice-actions button {
  min-height: 35px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #405967;
  border-radius: 6px;
  background: #12232c;
  color: #c8d5da;
  font: 800 12px inherit;
  text-decoration: none;
  cursor: pointer;
}

.cookie-notice-actions button {
  border-color: #f1a719;
  background: linear-gradient(#ffbd31, #e69909);
  color: #1a1207;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.legal-page .page-card {
  padding: 26px 30px;
}

.legal-page h1,
.legal-page h2 {
  color: #edf3f5;
}

.legal-page h1 {
  margin: 4px 0 8px;
  font-size: 34px;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.legal-page p,
.legal-page li {
  color: #9babb3;
  font-size: 15px;
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-meta {
  color: #758a94;
  font-size: 12px;
}

.legal-warning {
  padding: 13px 15px;
  border: 1px solid #705522;
  border-radius: 7px;
  background: #211b0e;
  color: #e6be69;
  font-size: 14px;
  line-height: 1.5;
}

.feedback-layout {
  max-width: 920px;
  margin: 0 auto;
}

.feedback-form {
  padding: 26px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feedback-grid label {
  display: grid;
  gap: 7px;
  color: #a9b7bd;
  font-size: 13px;
  font-weight: 800;
}

.feedback-grid .wide {
  grid-column: 1 / -1;
}

.feedback-grid label>small {
  color: #748994;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.feedback-grid input,
.feedback-grid select,
.feedback-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #3a525e;
  border-radius: 7px;
  background: #0b1820;
  color: #edf2f4;
  font: inherit;
}

.feedback-grid .feedback-privacy>span {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-weight: 500;
}

.feedback-grid .feedback-privacy input {
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: #f1a719;
}

.feedback-privacy a {
  color: #f0ae22;
}

.feedback-files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-files-list span {
  padding: 5px 8px;
  border: 1px solid #38515d;
  border-radius: 5px;
  background: #10212a;
  color: #9fb0b8;
  font-size: 11px;
  font-weight: 500;
}

.feedback-grid input,
.feedback-grid select {
  height: 46px;
  padding: 0 12px;
}

.feedback-grid textarea {
  min-height: 210px;
  padding: 12px;
  resize: vertical;
}

.feedback-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feedback-actions small {
  color: #80939c;
}

.feedback-success,
.feedback-error {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 7px;
}

.feedback-history {
  margin-top: 16px;
}

.feedback-history h2 {
  margin: 5px 0 16px;
  color: #edf3f5;
}

.feedback-history-list {
  display: grid;
  gap: 10px;
}

.feedback-history-list article {
  padding: 15px;
  border: 1px solid #304954;
  border-radius: 8px;
  background: #0b171f;
}

.feedback-history-list header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-history-list header span,
.feedback-history-list article>small {
  color: #7f939d;
  font-size: 11px;
}

.feedback-history-list header b {
  display: block;
  margin-top: 4px;
  color: #e6edef;
  font-size: 16px;
}

.feedback-history-list article>p {
  margin: 11px 0;
  color: #a9b8bf;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-history-list em {
  padding: 4px 7px;
  border: 1px solid #48626e;
  border-radius: 5px;
  color: #9fb1b8;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.feedback-history-list em.resolved {
  border-color: #3f7352;
  color: #87d19d;
}

.feedback-history-list em.in_progress {
  border-color: #3d7293;
  color: #7ac5f0;
}

.feedback-history-list em.rejected {
  border-color: #743f47;
  color: #ec8d95;
}

.feedback-reply {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #705821;
  border-radius: 7px;
  background: #211b0d;
}

.feedback-reply>span {
  color: #efb126;
  font-size: 11px;
  font-weight: 800;
}

.feedback-history-list .feedback-reply p {
  margin: 7px 0 0;
  color: #d8c89e;
}

.feedback-history-empty {
  padding: 25px;
  color: #81949d;
  text-align: center;
}

.feedback-success {
  border: 1px solid #376b4b;
  background: #10261a;
  color: #91d0a5;
}

.feedback-error {
  border: 1px solid #7d3d45;
  background: #2a161b;
  color: #ff969c;
}

@media (max-width: 720px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-notice-actions {
    justify-content: flex-end;
  }

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

  .feedback-grid .wide {
    grid-column: auto;
  }

  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
