:root {
  --legal-blue: #69d0ff;
  --legal-pink: #ff0b68;
  --legal-text: #dceaff;
  --legal-muted: #a9c7e2;
  --legal-border: rgba(118, 209, 255, 0.20);
}

.legal-main {
  min-width: 0;
  overflow-x: hidden;
  color: var(--legal-text);
  background:
    radial-gradient(
      circle at 82% 6%,
      rgba(42, 174, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #07182b, #04111f);
}

.legal-page-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 76px;
}

.legal-hero {
  padding: 40px;
  border: 1px solid var(--legal-border);
  border-radius: 24px;
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(300px, 0.75fr);
  gap: 36px;
  align-items: center;
  background:
    linear-gradient(
      125deg,
      rgba(4, 19, 34, 0.98),
      rgba(10, 43, 71, 0.94)
    );
}

.legal-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--legal-pink);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 4.7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.legal-hero-introduction {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c7e2f6;
  font-size: 1.06rem;
  line-height: 1.7;
}

.legal-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(118, 209, 255, 0.38);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(118, 209, 255, 0.07);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.legal-button--primary {
  border-color: #087cf0;
  background: linear-gradient(115deg, #087cf0, #105fd6);
}

.legal-button:hover,
.legal-button:focus-visible,
.legal-card a:hover,
.legal-card a:focus-visible,
.legal-cis-card a:hover,
.legal-cis-card a:focus-visible,
.legal-sla-note a:hover,
.legal-sla-note a:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}

.legal-provider-card {
  padding: 24px;
  border: 1px solid rgba(118, 209, 255, 0.22);
  border-radius: 18px;
  background: rgba(4, 20, 36, 0.76);
}

.legal-provider-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--legal-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-provider-card > strong {
  display: block;
  color: #ffffff;
  font-size: 1.7rem;
}

.legal-provider-card > p {
  margin: 4px 0 20px;
  color: var(--legal-muted);
}

.legal-provider-card dl {
  margin: 0;
}

.legal-provider-card dl div {
  padding: 11px 0;
  border-bottom: 1px solid rgba(118, 209, 255, 0.11);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.legal-provider-card dl div:last-child {
  border-bottom: 0;
}

.legal-provider-card dt {
  color: #8fcfff;
}

.legal-provider-card dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  text-align: right;
}

.legal-section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--legal-border);
  border-radius: 21px;
  background: rgba(5, 29, 51, 0.84);
}

.legal-section-heading {
  max-width: 820px;
  margin-bottom: 25px;
}

.legal-section-heading h2,
.legal-split-panel h2,
.legal-qualification h2,
.legal-important-notice h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.14;
}

.legal-section-heading p {
  margin: 14px 0 0;
  color: #b8d3e7;
  line-height: 1.68;
}

.legal-card-grid,
.legal-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-cis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-card,
.legal-cis-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(118, 209, 255, 0.17);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  background: rgba(4, 22, 39, 0.74);
}

.legal-card h3,
.legal-cis-card h3,
.legal-sla-note h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.12rem;
}

.legal-card p,
.legal-cis-card p,
.legal-sla-note p,
.legal-split-panel p,
.legal-qualification p,
.legal-important-notice p {
  margin: 0 0 16px;
  color: #aecce2;
  line-height: 1.64;
}

.legal-card a,
.legal-cis-card a,
.legal-sla-note a {
  margin-top: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--legal-blue);
  font-weight: 800;
  text-decoration: none;
}

.legal-cis-card > span {
  margin-bottom: 11px;
  color: var(--legal-blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


.legal-draft-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid #f3bd3d;
  border-radius: 10px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 18px;
  color: #c8dceb;
  background: rgba(243, 189, 61, 0.08);
  line-height: 1.6;
}

.legal-draft-notice strong {
  color: #ffffff;
}

.legal-split-panel {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(290px, 0.85fr);
  gap: 28px;
}

.legal-sla-note {
  padding: 22px;
  border: 1px solid rgba(118, 209, 255, 0.22);
  border-radius: 16px;
  background: rgba(42, 174, 255, 0.07);
}

.legal-support-grid ul {
  margin: 0;
  padding-left: 20px;
}

.legal-support-grid li {
  margin-bottom: 8px;
  color: var(--legal-muted);
}

.legal-qualification {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--legal-border);
  border-radius: 21px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: rgba(5, 29, 51, 0.84);
}

.legal-important-notice {
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid rgba(118, 209, 255, 0.17);
  border-radius: 18px;
  background: rgba(4, 22, 39, 0.70);
}

.legal-important-notice p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1061px) {
  .site-shell > .legal-main {
    width: calc(100% - 248px);
    margin-left: 248px;
  }
}

@media (max-width: 1060px) {
  .site-shell > .legal-main {
    width: 100%;
    margin-left: 0;
  }

  .legal-page-shell {
    width: min(900px, calc(100% - 36px));
    padding-top: 32px;
  }

  .legal-hero,
  .legal-split-panel,
  .legal-qualification {
    grid-template-columns: 1fr;
  }

  .legal-cis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .legal-page-shell {
    width: calc(100% - 28px);
    padding: 24px 0 54px;
  }

  .legal-hero,
  .legal-section,
  .legal-qualification {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .legal-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

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

  .legal-button {
    width: 100%;
  }

  .legal-card-grid,
  .legal-cis-grid,
  .legal-support-grid {
    grid-template-columns: 1fr;
  }

  .legal-draft-notice {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-provider-card dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-provider-card dd {
    text-align: left;
  }
}

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

  .legal-hero,
  .legal-section,
  .legal-qualification {
    padding-right: 15px;
    padding-left: 15px;
  }

  .legal-hero h1 {
    overflow-wrap: anywhere;
  }
}

/* LEGAL-MOBILE-BRAND-FIX-START */
@media (max-width: 1060px) {
  .kw-responsive-brand {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    transform: none !important;
    translate: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 14px 18px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  .kw-responsive-brand__statement {
    display: none !important;
  }

  .kw-responsive-brand img,
  .kw-responsive-brand .kern-logo,
  .kw-responsive-brand__logo {
    width: auto !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 58px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  .legal-page-shell {
    padding-top: 18px !important;
  }

  .legal-hero {
    margin-top: 0 !important;
  }

  .legal-hero-copy,
  .legal-provider-card {
    min-width: 0;
  }

  .legal-hero h1,
  .legal-hero-introduction,
  .legal-kicker {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .kw-responsive-brand {
    min-height: 68px !important;
    padding: 11px 14px 8px !important;
  }

  .kw-responsive-brand img,
  .kw-responsive-brand .kern-logo,
  .kw-responsive-brand__logo {
    max-width: 165px !important;
    max-height: 50px !important;
  }

  .legal-page-shell {
    padding-top: 14px !important;
  }

  .legal-hero {
    padding-top: 22px !important;
  }

  .legal-kicker {
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .legal-hero h1 {
    margin-top: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .legal-provider-card {
    margin-top: 4px;
  }
}

@media (max-width: 430px) {
  .legal-hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .legal-hero-introduction {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.72;
  }

  .legal-actions {
    margin-top: 24px;
  }

  .legal-provider-card {
    padding: 22px;
  }
}

@media (max-width: 390px) {
  .kw-responsive-brand {
    min-height: 64px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .kw-responsive-brand img,
  .kw-responsive-brand .kern-logo,
  .kw-responsive-brand__logo {
    max-width: 150px !important;
    max-height: 46px !important;
  }

  .legal-page-shell {
    padding-top: 12px !important;
  }

  .legal-hero {
    padding-top: 20px !important;
  }

  .legal-hero h1 {
    font-size: clamp(2.05rem, 10.8vw, 2.75rem);
    overflow-wrap: anywhere;
  }

  .legal-provider-card {
    padding-right: 20px;
    padding-left: 20px;
  }
}
/* LEGAL-MOBILE-BRAND-FIX-END */
