:root {
  --text: #fbf2e8;
  --muted: #c6b8aa;
  --soft: #ead9c8;
  --accent-3: #f0a15e;
  --radius-xl: 34px;
  --font-main: Manrope, Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --content-gutter: clamp(16px, 2.5vw, 32px);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 72% 18%, rgb(128 63 31 / 20%) 0 22%, transparent 50%),
    radial-gradient(ellipse at 18% 8%, rgb(240 161 94 / 8%) 0 18%, transparent 44%),
    linear-gradient(135deg, #2b160d 0%, #16110e 54%, #090807 100%);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 238 220 / 16%) 1px, transparent 0);
  background-size: 5px 5px;
  content: "";
  opacity: 0.06;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgb(255 177 109 / 72%);
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin: 0;
  color: #fff5e8;
  font-size: clamp(2.3rem, 3.55vw, 3.85rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.legal-page {
  min-height: 100dvh;
  padding: clamp(96px, 12vw, 132px) 0 clamp(40px, 7vw, 72px);
}

.legal-page .page-shell {
  width: min(948px, calc(100vw - (var(--content-gutter) * 2)));
  margin-right: auto;
  margin-left: auto;
}

.legal-page a {
  color: var(--accent-3);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgb(255 177 109 / 32%);
  text-underline-offset: 3px;
}

.legal-layout {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.legal-header,
.legal-document,
.legal-requisites {
  min-width: 0;
  border: 1px solid rgb(255 223 194 / 16%);
  background:
    linear-gradient(180deg, rgb(255 239 221 / 11%) 0 1px, transparent 2px),
    linear-gradient(145deg, rgb(35 24 18 / 80%), rgb(15 15 14 / 78%));
  box-shadow: 0 20px 54px rgb(8 4 2 / 28%), inset 0 1px 0 rgb(255 255 255 / 8%);
  backdrop-filter: blur(18px) saturate(130%);
}

.legal-header {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-xl);
}

.legal-header h1 {
  max-width: 980px;
  font-size: clamp(1.95rem, 4vw, 3.4rem);
}

.legal-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 780;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgb(255 223 194 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--soft);
  font-weight: 900;
  text-decoration: none;
}

.legal-document,
.legal-requisites {
  display: grid;
  align-items: start;
  gap: 18px;
  padding: clamp(20px, 3.4vw, 34px);
  border-radius: 26px;
}

.legal-document section {
  display: grid;
  gap: 10px;
  max-width: min(100%, 74ch);
}

.legal-document h2,
.legal-requisites h2 {
  margin: 0;
  color: #fff3e6;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}

.legal-document p,
.legal-document li,
.legal-requisites p,
.legal-requisites li {
  margin: 0;
  color: var(--soft);
  line-height: 1.64;
}

.legal-document ul,
.legal-requisites ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.15rem;
}

.legal-warning {
  max-width: min(100%, 74ch);
  padding: 14px 16px;
  border: 1px solid rgb(255 177 109 / 24%);
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(228 123 50 / 12%), rgb(255 255 255 / 4%));
  color: #fff1df !important;
  font-weight: 850;
}

.legal-requisites dl {
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.legal-requisites dt {
  color: var(--muted);
  font-weight: 850;
}

.legal-requisites dd {
  min-width: 0;
  margin: 0;
  color: var(--soft);
  overflow-wrap: anywhere;
  font-weight: 780;
}

@media (max-width: 767px) {
  body {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  :root {
    --content-gutter: 16px;
  }

  .legal-page {
    padding-top: 88px;
  }

  .legal-header h1 {
    width: calc(100vw - 84px) !important;
    max-width: calc(100vw - 84px) !important;
    font-size: clamp(1.7rem, 7.2vw, 2.05rem);
    line-height: 1.06;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
  }

  .legal-header,
  .legal-document,
  .legal-requisites {
    border-radius: 22px;
  }

  .legal-requisites dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .legal-requisites dd + dt {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .legal-header h1 {
    width: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
  }
}
