/* Magic Baby — Privacy & Cookie Policy pages */

.legal-document-page {
  background: #fbf8f4;
}

.legal-page {
  color: #382820;
  overflow: hidden;
}

.legal-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 9vw, 126px) 0 clamp(94px, 11vw, 150px);
  border-bottom: 1px solid rgba(56,40,32,.07);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 74px;
  z-index: -1;
  background: #fbf8f4;
  clip-path: ellipse(58% 48% at 50% 100%);
}

.legal-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 870px;
  margin-inline: auto;
  text-align: center;
}

.legal-hero__icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(217,111,86,.18);
  border-radius: 25px;
  color: #d96f56;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 44px rgba(92,49,37,.11);
  backdrop-filter: blur(12px);
  transform: rotate(-2deg);
}

.legal-hero__icon svg {
  width: 42px;
  height: 42px;
}

.legal-hero__eyebrow {
  margin: 0 0 14px;
  color: #d96f56;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: #382820;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}

.legal-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 9px 14px;
  border: 1px solid rgba(56,40,32,.08);
  border-radius: 999px;
  color: #73675f;
  background: rgba(255,255,255,.64);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(74,46,35,.06);
}

.legal-hero__meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8eaa8d;
  box-shadow: 0 0 0 4px rgba(142,170,141,.16);
}

.legal-hero__shape {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  opacity: .72;
}

.legal-hero__shape--one {
  width: 290px;
  height: 290px;
  top: -105px;
  left: max(-110px, calc(50% - 760px));
  background: rgba(255,255,255,.66);
}

.legal-hero__shape--two {
  width: 210px;
  height: 210px;
  right: max(-70px, calc(50% - 720px));
  bottom: 26px;
  background: rgba(235,154,136,.18);
}

.legal-content-section {
  position: relative;
  padding: 0 0 clamp(80px, 10vw, 140px);
}

.legal-layout {
  max-width: 1040px;
}

.legal-card {
  position: relative;
  margin-top: clamp(-72px, -6vw, -46px);
  padding: clamp(38px, 6vw, 78px) clamp(28px, 7vw, 88px);
  border: 1px solid rgba(56,40,32,.08);
  border-radius: 34px;
  background: rgba(255,255,255,.97);
  box-shadow:
    0 30px 80px rgba(73,45,34,.10),
    0 3px 12px rgba(73,45,34,.04);
}

.legal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: #eb9a88;
  transform: translateX(-50%);
}

.legal-wrap {
  max-width: none;
}

.legal-wrap > p:first-child {
  margin-top: 0;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(56,40,32,.09);
  color: #50423a;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.75;
}

.legal-wrap p {
  margin: 0 0 18px;
  color: #665951;
  font-size: 16px;
  line-height: 1.82;
}

.legal-wrap h2 {
  position: relative;
  margin: 54px 0 18px;
  padding-top: 8px;
  color: #382820;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.legal-wrap h2::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #eb9a88;
}

.legal-wrap h3 {
  margin: 30px 0 10px;
  color: #493831;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.legal-wrap ul,
.legal-wrap ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}

.legal-wrap li {
  position: relative;
  padding: 13px 18px 13px 45px;
  border: 1px solid rgba(56,40,32,.065);
  border-radius: 14px;
  color: #5f524a;
  background: #fcfaf8;
  font-size: 15px;
  line-height: 1.55;
}

.legal-wrap li::before {
  content: "✓";
  position: absolute;
  top: 13px;
  left: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #8eaa8d;
  font-size: 11px;
  font-weight: 900;
}

.legal-wrap strong {
  color: #382820;
  font-weight: 800;
}

.legal-wrap a {
  color: #c95f49;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(201,95,73,.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.legal-wrap a:hover {
  color: #a94734;
  text-decoration-color: currentColor;
}

.legal-wrap br + strong,
.legal-wrap br + a {
  margin-top: 4px;
}

.legal-wrap > *:last-child {
  margin-bottom: 0;
}

.legal-wrap h2:last-of-type + p,
.legal-wrap h2:last-of-type + p + p {
  padding: 18px 20px;
  border: 1px solid rgba(235,154,136,.22);
  border-radius: 16px;
  background: #fff7f3;
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 58px 0 104px;
  }

  .legal-hero::after {
    height: 52px;
    clip-path: ellipse(72% 45% at 50% 100%);
  }

  .legal-hero__inner {
    padding-inline: 8px;
  }

  .legal-hero__icon {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 20px;
  }

  .legal-hero__icon svg {
    width: 34px;
    height: 34px;
  }

  .legal-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .legal-hero__meta {
    margin-top: 20px;
    font-size: 12px;
  }

  .legal-content-section {
    padding-bottom: 76px;
  }

  .legal-layout {
    padding-inline: 14px;
  }

  .legal-card {
    margin-top: -54px;
    padding: 38px 22px 46px;
    border-radius: 25px;
  }

  .legal-wrap > p:first-child {
    padding-bottom: 24px;
    font-size: 17px;
    line-height: 1.68;
  }

  .legal-wrap p {
    font-size: 15px;
    line-height: 1.75;
  }

  .legal-wrap h2 {
    margin-top: 46px;
    font-size: 24px;
  }

  .legal-wrap h3 {
    font-size: 18px;
  }

  .legal-wrap li {
    padding: 12px 14px 12px 42px;
    border-radius: 13px;
    font-size: 14px;
  }

  .legal-wrap li::before {
    top: 12px;
    left: 14px;
  }
}

@media (max-width: 420px) {
  .legal-layout {
    padding-inline: 10px;
  }

  .legal-card {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-wrap a {
    transition: none;
  }
}

.legal-content{
    position: relative;
    z-index: 10;

    max-width: 980px;   /* или 1000px */
    width: calc(100% - 40px);

    margin: -80px auto 80px;   /* <-- центрирует */

    background:#fff;
    border-radius:32px;

    padding:64px;
    box-shadow:0 25px 80px rgba(0,0,0,.06);
}

.legal-page{
    display:flex;
    flex-direction:column;
    align-items:center;
}