/* Legal Page Template */
.sfc-legal-page { overflow: hidden; background: var(--sfc-white); }

.sfc-legal-hero {
  position: relative;
  padding: clamp(58px, 6vw, 104px) 0 clamp(84px, 7vw, 132px);
  color: var(--sfc-white);
}

.sfc-legal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 7vw, 106px);
  align-items: center;
}

.sfc-legal-hero--image-right .sfc-legal-hero__media { order: 2; }
.sfc-legal-hero--image-right .sfc-legal-hero__content { order: 1; }

.sfc-legal-hero--no-image .sfc-legal-hero__grid {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  text-align: center;
}

.sfc-legal-hero__media {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.sfc-legal-hero__media img {
  width: 100%;
  height: clamp(320px, 34vw, 560px);
  object-fit: cover;
  object-position: center;
}

.sfc-legal-hero h1 {
  max-width: 720px;
  color: var(--sfc-white);
  font-size: clamp(2.25rem, 4vw, 4.6rem);
}

.sfc-legal-hero__subtitle {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--sfc-white);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 900;
  line-height: 1.35;
}

.sfc-legal-hero__text {
  max-width: 760px;
  color: rgba(255,255,255,.9);
  font-weight: 650;
  line-height: 1.58;
}

.sfc-legal-brush {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: clamp(42px, 5vw, 82px);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.sfc-legal-brush--white {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 84' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 58c69 8 123-10 196-8 87 3 124 22 211 15 84-7 132-25 216-20 88 6 136 31 224 26 82-5 128-29 211-22 84 7 131 29 216 25 70-3 108-18 166-18v28H0V58Z'/%3E%3Cpath fill='%23ffffff' d='M0 72c82-3 163-11 245-12 76-1 151 5 227 2 95-4 189-20 283-19 92 1 184 20 276 18 93-2 185-23 278-21 45 1 88 9 131 16v28H0V72Z' opacity='.9'/%3E%3C/svg%3E");
}

.sfc-legal-content-section,
.sfc-legal-extra-section {
  padding: clamp(64px, 7vw, 118px) 0;
}

.sfc-legal-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .68fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.sfc-legal-content__grid--image-left .sfc-legal-content__media { order: -1; }
.sfc-legal-content__grid--no-image { grid-template-columns: minmax(0, 920px); justify-content: center; }

.sfc-legal-content__copy {
  color: var(--sfc-blue-dark);
}

.sfc-legal-rich h2 {
  margin-bottom: 22px;
  color: var(--sfc-blue-dark);
  font-size: clamp(1.8rem, 2.2vw, 2.55rem);
}

.sfc-legal-rich h3 {
  margin: 34px 0 14px;
  color: var(--sfc-blue-dark);
  font-size: clamp(1.22rem, 1.35vw, 1.55rem);
}

.sfc-legal-rich h4,
.sfc-legal-rich h5,
.sfc-legal-rich h6 {
  margin: 28px 0 10px;
  color: var(--sfc-blue-dark);
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.sfc-legal-rich p,
.sfc-legal-rich li {
  color: var(--sfc-blue-dark);
  font-size: clamp(.96rem, 1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.66;
}

.sfc-legal-rich p { margin-bottom: 19px; }
.sfc-legal-rich ul,
.sfc-legal-rich ol { margin: 0 0 24px; padding-left: 1.35em; }
.sfc-legal-rich a { color: var(--sfc-red); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.sfc-legal-content__media {
  position: sticky;
  top: 118px;
}

.sfc-legal-content__media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(7,22,34,.12);
  object-fit: cover;
}

.sfc-bg-sky.sfc-legal-extra-section { background: var(--sfc-sky); }

@media (max-width: 1100px) {
  .sfc-legal-hero__grid,
  .sfc-legal-content__grid {
    grid-template-columns: 1fr;
  }

  .sfc-legal-hero--image-right .sfc-legal-hero__media,
  .sfc-legal-hero--image-right .sfc-legal-hero__content,
  .sfc-legal-content__grid--image-left .sfc-legal-content__media {
    order: initial;
  }

  .sfc-legal-content__media {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .sfc-legal-hero {
    padding-top: 42px;
  }

  .sfc-legal-hero__media img {
    height: clamp(240px, 70vw, 360px);
  }

  .sfc-legal-content-section,
  .sfc-legal-extra-section {
    padding: 48px 0;
  }
}
