.legal-page {
  width: min(820px, 92vw);
}

.legal-page__head {
  margin-bottom: 2rem;
}

.legal-page__head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.legal[hidden] {
  display: none !important;
}

.legal {
  display: grid;
  gap: 1.35rem;
  color: #c8c4bc;
  font-size: 0.98rem;
}

.legal h2 {
  margin-top: 0.6rem;
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.legal a {
  color: var(--gold);
}

.legal ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal th,
.legal td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.legal th {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form__note {
  color: #8f8b84;
  font-size: 0.82rem;
}

.contact-form__note a {
  color: var(--gold);
}

.footer__nav button,
.footer-links button,
.footer__links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cookie-bar {
  position: fixed;
  z-index: 200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 1rem;
  width: min(720px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

.cookie-bar p {
  color: #d4d0c8;
  font-size: 0.92rem;
}

.cookie-bar a {
  color: var(--gold);
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-bar__actions button {
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-bar__actions .cookie-bar__accept {
  border: 0;
  color: #14120c;
  background: #f0d37a;
}

.cookie-bar__actions .cookie-bar__accept:hover {
  background: #e4c15a;
}

.cookie-bar__necessary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}

body:has(.cookie-bar:not([hidden])) {
  padding-bottom: 9rem;
}

@media (max-width: 680px) {
  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }

  .legal thead {
    display: none;
  }

  .legal tr {
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cookie-bar__actions button {
    width: 100%;
  }
}
