:root {
  --legal-ink: #f4f1e9;
  --legal-muted: rgba(244, 241, 233, 0.65);
  --legal-line: rgba(255, 255, 255, 0.14);
  --legal-accent: #c9ff62;
  --legal-bg: #0b0d0c;
}

html {
  background: var(--legal-bg);
  overflow-x: hidden;
}

body.legal-page {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 6%, rgba(173, 199, 170, 0.2), transparent 32rem),
    linear-gradient(135deg, #0b0d0c, #111511);
  color: var(--legal-ink);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body.legal-page > header,
body.legal-page > .section-spacing,
body.legal-page > .light-grey,
body.legal-page > .wa-container,
body.legal-page > .tel-container {
  display: none !important;
}

.legal-page-brand {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: clamp(18px, 4vw, 54px);
  left: clamp(18px, 4vw, 54px);
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 17px;
  border: 1px solid var(--legal-line);
  border-radius: 999px;
  background: rgba(10, 12, 10, 0.82);
  color: var(--legal-ink);
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.legal-page-brand span {
  display: grid;
  gap: 1px;
}

.legal-page-brand small {
  color: var(--legal-accent);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.legal-page-brand strong {
  font-family: Manrope, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.legal-page-brand b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--legal-line);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

body.legal-page main {
  min-height: 100vh;
  padding: 112px 0 64px;
}

body.legal-page main > .section-spacing {
  display: none;
}

body.legal-page main section {
  display: block;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

body.legal-page .full-page-text {
  width: 100%;
  max-width: none;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid var(--legal-line);
  border-radius: 4px;
  background: rgba(17, 20, 18, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

body.legal-page .full-page-text::before {
  display: block;
  margin-bottom: 15px;
  color: var(--legal-accent);
  content: "DOCUMENTI · IMMOBILCASE SRLS";
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

body.legal-page .full-page-text h1,
body.legal-page .full-page-text h2,
body.legal-page .full-page-text h3,
body.legal-page .full-page-text p,
body.legal-page .full-page-text b,
body.legal-page .full-page-text i {
  color: var(--legal-ink);
}

body.legal-page .full-page-text h1,
body.legal-page .full-page-text h2 {
  margin: 0 0 32px;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

body.legal-page .full-page-text h3 {
  margin: 40px 0 13px;
  padding-top: 26px;
  border-top: 1px solid var(--legal-line);
  font-family: Manrope, sans-serif;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

body.legal-page .full-page-text p {
  max-width: 78ch;
  margin: 0 0 13px;
  color: var(--legal-muted);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  line-height: 1.78;
}

body.legal-page .full-page-text a {
  color: var(--legal-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.legal-page .full-page-text .cookie-policy-manage {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--legal-accent);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--legal-accent);
  color: #10130f;
  box-shadow: 0 10px 28px rgba(116, 175, 38, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.legal-page .full-page-text .cookie-policy-manage:hover,
body.legal-page .full-page-text .cookie-policy-manage:focus-visible {
  border-color: #ddff9d;
  outline: none;
  background: #ddff9d;
  transform: translateY(-1px);
}

.is-embedded body.legal-page {
  background: #111411;
}

.is-embedded .legal-page-brand {
  display: none;
}

.is-embedded body.legal-page main {
  min-height: 100%;
  padding: 0;
}

.is-embedded body.legal-page main section {
  width: 100%;
}

.is-embedded body.legal-page .full-page-text {
  padding: clamp(24px, 5vw, 52px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.is-embedded body.legal-page .full-page-text::before,
.is-embedded body.legal-page .full-page-text > h1:first-child,
.is-embedded body.legal-page .full-page-text > h1:first-child + br,
.is-embedded body.legal-page .full-page-text > h2:first-child,
.is-embedded body.legal-page .full-page-text > h2:first-child + br {
  display: none;
}

.is-embedded body.legal-page .full-page-text p {
  font-size: clamp(0.94rem, 1.8vw, 1.02rem);
}

@media (max-width: 640px) {
  .legal-page-brand {
    top: 12px;
    right: 12px;
    left: 12px;
    min-height: 44px;
    padding: 0 14px;
  }

  body.legal-page main {
    padding: 82px 0 28px;
  }

  body.legal-page main section {
    width: calc(100% - 24px);
  }

  body.legal-page .full-page-text {
    padding: 25px 20px 32px;
  }

  body.legal-page .full-page-text h1,
  body.legal-page .full-page-text h2 {
    margin-bottom: 24px;
  }
}
