/* Kphysio legal pages — text-only layout for privacy policy and general conditions. */

.page-general-conditions,
.page-privacy {
  background:
    radial-gradient(circle at 8% 5%, rgba(8, 166, 166, .08), transparent 25rem),
    linear-gradient(180deg, #f6fbfd 0%, #ffffff 42%, #f7fbfd 100%);
}

.legal-page {
  min-height: 70vh;
}

.legal-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 clamp(42px, 5vw, 66px);
  border-bottom: 1px solid rgba(15, 91, 120, .12);
  background:
    radial-gradient(circle at 82% 15%, rgba(8, 166, 166, .14), transparent 24rem),
    linear-gradient(135deg, #062e49 0%, #084b64 57%, #087d85 100%);
  color: #fff;
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.legal-hero::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -180px;
  border: 1px solid rgba(255,255,255,.12);
}

.legal-hero::after {
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: -150px;
  background: rgba(73, 225, 211, .08);
}

.legal-hero .legal-shell {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  text-align: center;
}

.legal-hero__eyebrow,
.legal-document__kicker {
  margin: 0 0 12px;
  color: #71ece0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.legal-hero__lead {
  max-width: 780px;
  margin: 20px auto 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.68;
  text-wrap: pretty;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.legal-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.legal-content-section {
  padding: clamp(38px, 5vw, 72px) 0 clamp(60px, 7vw, 96px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 14px;
}

.legal-sidebar__card,
.legal-document {
  border: 1px solid #d5e4eb;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 42px rgba(8, 55, 76, .08);
}

.legal-sidebar__card {
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
}

.legal-sidebar__title {
  margin-bottom: 12px;
  color: #082f4b;
  font-size: 14px;
  font-weight: 900;
}

.legal-toc__nav {
  display: grid;
  gap: 3px;
}

.legal-toc__nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #496778;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.legal-toc__nav a:hover,
.legal-toc__nav a:focus-visible {
  transform: translateX(2px);
  background: #edf8f8;
  color: #067d87;
}

.legal-sidebar__card--contact {
  background:
    radial-gradient(circle at 92% 10%, rgba(12, 168, 168, .09), transparent 48%),
    #f8fcfd;
}

.legal-sidebar__card--contact p {
  margin: 0 0 12px;
  color: #587181;
  font-size: 13px;
  line-height: 1.55;
}

.legal-sidebar__card--contact > a:not(.legal-sidebar__secondary-link) {
  display: block;
  overflow-wrap: anywhere;
  color: #087f88;
  font-size: 13px;
  font-weight: 850;
}

.legal-sidebar__secondary-link {
  display: inline-block;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #d9e7ec;
  color: #0a4760;
  font-size: 12.5px;
  font-weight: 800;
}

.legal-document {
  min-width: 0;
  overflow: hidden;
  border-radius: 26px;
}

.legal-document__header {
  padding: clamp(25px, 3vw, 38px);
  border-bottom: 1px solid #dce8ed;
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 166, 166, .11), transparent 22rem),
    linear-gradient(180deg, #fbfefe 0%, #f4fafb 100%);
}

.legal-document__header .legal-document__kicker {
  color: #07858d;
}

.legal-document__header h2 {
  max-width: 760px;
  margin: 0;
  color: #062e4d;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.legal-document__header > p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: #587181;
  font-size: 15px;
  line-height: 1.65;
}

.legal-document__body {
  padding: clamp(26px, 3.8vw, 48px);
}

.legal-document__body h2 {
  scroll-margin-top: 120px;
  margin: 42px 0 16px;
  padding: 0 0 13px;
  border-bottom: 1px solid #dce8ed;
  color: #07324f;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.legal-document__body h2:first-child {
  margin-top: 0;
}

.legal-document__body p {
  margin: 0 0 15px;
  color: #365767;
  font-size: 16px;
  line-height: 1.78;
}

.legal-document__clause {
  padding-left: 14px;
  border-left: 3px solid #b9dde0;
}

.legal-document__list {
  display: grid;
  gap: 9px;
  margin: 3px 0 20px;
  padding: 0;
  list-style: none;
}

.legal-document__list li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border: 1px solid #e0eaee;
  border-radius: 12px;
  background: #f8fbfc;
  color: #365767;
  font-size: 15px;
  line-height: 1.55;
}

.legal-document__list li::before {
  content: "✓";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff4f2;
  color: #087f88;
  font-size: 11px;
  font-weight: 900;
}

.legal-document__meta-line {
  margin: 7px 0 !important;
  padding: 10px 13px;
  border-radius: 10px;
  background: #f1f8f9;
  color: #244e62 !important;
  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.5 !important;
}

.legal-document__empty {
  margin: 0 !important;
  padding: 22px;
  border: 1px dashed #bfd4dc;
  border-radius: 16px;
  background: #f8fbfc;
  text-align: center;
}

@media (max-width: 900px) {
  .legal-shell {
    width: min(100% - 28px, 760px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar__card:first-child {
    max-height: 300px;
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .legal-shell {
    width: calc(100% - 20px);
  }

  .legal-hero {
    padding: 44px 0 38px;
  }

  .legal-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .legal-hero__lead {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.58;
  }

  .legal-hero__meta {
    justify-content: flex-start;
    gap: 7px;
  }

  .legal-hero .legal-shell {
    text-align: left;
  }

  .legal-content-section {
    padding: 22px 0 54px;
  }

  .legal-layout {
    gap: 14px;
  }

  .legal-sidebar__card {
    padding: 15px;
    border-radius: 17px;
  }

  .legal-toc__nav {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .legal-toc__nav a {
    padding: 9px;
    border: 1px solid #e0eaee;
    background: #f8fbfc;
    font-size: 11.5px;
  }

  .legal-document {
    border-radius: 20px;
  }

  .legal-document__header {
    padding: 23px 18px;
  }

  .legal-document__header h2 {
    font-size: 27px;
  }

  .legal-document__body {
    padding: 24px 18px 28px;
  }

  .legal-document__body h2 {
    margin-top: 34px;
    font-size: 21px;
  }

  .legal-document__body p {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .legal-document__list li {
    font-size: 14.5px;
  }
}

@media (max-width: 420px) {
  .legal-toc__nav {
    grid-template-columns: 1fr;
  }

  .legal-hero__meta span {
    font-size: 11px;
  }
}
