:root {
  --legal-paper: #f5f3ed;
  --legal-card: #fff;
  --legal-ink: #15171b;
  --legal-muted: #59606b;
  --legal-line: #dedbd3;
  --legal-red: #d82431;
}

.legal-footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
  background: #0a0b0d;
  color: #c7c9cd;
  font-size: 13px;
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-footer__inner > span {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.legal-footer__links a,
.legal-footer__links button {
  padding: 0;
  border: 0;
  background: none;
  color: #c7c9cd;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.legal-footer__links a:hover,
.legal-footer__links a:focus-visible,
.legal-footer__links button:hover,
.legal-footer__links button:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.checkout-customer-type {
  display: block;
  max-width: 560px;
}

.checkout-consumer-start {
  max-width: 720px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d9d1c9;
  border-radius: 10px;
  background: #fbf8f3;
}

.checkout-consumer-start[hidden] {
  display: none;
}

.order-form__check--standalone {
  margin: 0;
  padding: 0;
  border: 0;
}

.order-form__check a {
  color: #9e202d;
  font-weight: 700;
  text-underline-offset: 3px;
}

.checkout-legal-summary {
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid #dce1e8;
}

.checkout-legal-summary > div {
  display: grid;
  grid-template-columns: minmax(100px, .75fr) minmax(0, 1.25fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e8ed;
}

.checkout-legal-summary dt,
.checkout-legal-summary dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-legal-summary dt {
  color: #697381;
}

.checkout-legal-summary dd {
  color: #27303c;
  font-weight: 700;
  text-align: right;
}

.cookie-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #d7d9de;
  border-radius: 14px;
  background: #fff;
  color: #20242b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.cookie-dialog::backdrop {
  background: rgba(5, 6, 8, .72);
}

.cookie-dialog__body {
  padding: 28px;
}

.cookie-dialog__eyebrow {
  margin: 0 0 8px;
  color: #b3222f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cookie-dialog h2 {
  margin: 0;
  color: #16191f;
  font-size: 30px;
  line-height: 1.1;
}

.cookie-dialog p {
  margin: 14px 0 0;
  color: #565e69;
  font-size: 14px;
  line-height: 1.7;
}

.cookie-dialog__status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #dfe7df;
  border-radius: 9px;
  background: #f4faf5;
  color: #24452e;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-dialog__status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: #2e8b4b;
  content: "";
}

.cookie-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.cookie-dialog__actions a {
  color: #9e202d;
  font-weight: 750;
  text-underline-offset: 3px;
}

.cookie-dialog__close {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: #181b21;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.legal-body {
  min-height: 100vh;
  margin: 0;
  background: var(--legal-paper);
  color: var(--legal-ink);
}

.legal-topbar {
  position: relative;
  background: #0a0b0d;
}

.legal-topbar .topbar__inner {
  min-height: 78px;
}

.legal-topbar__back {
  color: #e4e5e7;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.legal-topbar__back:hover,
.legal-topbar__back:focus-visible {
  color: #fff;
}

.legal-hero {
  padding: 72px 0 46px;
  background: #0a0b0d;
  color: #fff;
}

.legal-hero .eyebrow {
  color: #ff5b65;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.legal-hero__intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: #bfc2c8;
  font-size: 17px;
  line-height: 1.72;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: #969aa2;
  font-size: 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  padding-top: 52px;
  padding-bottom: 76px;
}

.legal-toc {
  position: sticky;
  top: 22px;
  padding: 18px;
  border: 1px solid var(--legal-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .64);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: #20242a;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: #5c626c;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: #a51f2c;
}

.legal-document {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: var(--legal-card);
  box-shadow: 0 18px 55px rgba(21, 23, 27, .06);
}

.legal-document section + section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid #e7e4de;
}

.legal-document h2 {
  margin: 0 0 16px;
  color: #171a20;
  font-size: clamp(25px, 3.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.legal-document h3 {
  margin: 25px 0 10px;
  color: #252a32;
  font-size: 18px;
  line-height: 1.3;
}

.legal-document p,
.legal-document li,
.legal-document dd,
.legal-document dt {
  color: #4e5560;
  font-size: 15px;
  line-height: 1.78;
}

.legal-document p {
  margin: 12px 0 0;
}

.legal-document ul,
.legal-document ol {
  margin: 13px 0 0;
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 7px;
}

.legal-document a {
  color: #9e202d;
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-identity {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 18px 0 0;
}

.legal-identity dt,
.legal-identity dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #ece9e3;
}

.legal-identity dt {
  color: #747a84;
}

.legal-identity dd {
  color: #292e36;
  font-weight: 700;
}

.legal-callout {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--legal-red);
  border-radius: 0 8px 8px 0;
  background: #f8f1f1;
}

.legal-callout p:first-child {
  margin-top: 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border: 1px solid #e3e0d9;
  color: #4e5560;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f3f1eb;
  color: #272c34;
  font-weight: 800;
}

.withdrawal-form {
  margin-top: 20px;
  padding: 22px;
  border: 1px dashed #c9c5bc;
  border-radius: 9px;
  background: #fbfaf7;
}

@media (max-width: 880px) {
  .legal-footer__inner,
  .legal-layout {
    display: block;
  }

  .legal-footer__links {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .legal-toc {
    position: static;
    margin-bottom: 22px;
  }
}

@media (max-width: 560px) {
  .legal-footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkout-legal-summary > div,
  .legal-identity {
    grid-template-columns: 1fr;
  }

  .checkout-legal-summary dd {
    text-align: left;
  }

  .legal-identity dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .cookie-dialog__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-dialog__close {
    width: 100%;
  }
}
