
:root {
  --ek-bg: #ececec;
  --ek-panel: #f4f4f4;
  --ek-ink: #171717;
  --ek-muted: #626262;
  --ek-soft: #f1f1f1;
  --ek-line: rgba(20, 20, 20, .09);
  --ek-blue: #2f8cff;
  
  /* Requested Container Style */
  --ek-shadow-container: 
    8px 8px 11px #afafaf,
    -8px -8px 11px #ffffff;
  --ek-bg-container: linear-gradient(145deg, #cacaca, #f0f0f0);
  
  --ek-shadow-button:
    8px 8px 18px rgba(120, 120, 130, .34),
    -8px -8px 18px rgba(255, 255, 255, .96);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--ek-bg);
  color: var(--ek-ink);
  font-weight: 500;
}

.legal-page {
  min-height: 100vh;
  padding: 26px 18px 54px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .86), transparent 34%),
    radial-gradient(circle at 92% 24%, rgba(47, 140, 255, .07), transparent 28%),
    var(--ek-bg);
}

.legal-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  min-height: 72px;
  padding: 12px 22px;
  border-radius: 24px;
  background: rgba(235, 235, 235, 0.88);
  box-shadow:
    8px 8px 18px rgba(175, 175, 175, 0.45),
    -8px -8px 18px rgba(255, 255, 255, 0.9);
}

.legal-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  min-height: auto;
}

.legal-brand img {
  display: block;
  width: 155px;
  max-height: 38px;
  object-fit: contain;
}

.legal-action {
  appearance: none;
  border: none;
  outline: none;
  min-height: 36px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1f4fae;
  background: linear-gradient(145deg, #f2f2f2, #d7d7d7);
  box-shadow:
    6px 6px 9px rgba(145, 145, 145, 0.38),
    -6px -6px 9px rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.legal-action:hover {
  transform: translateY(-1px);
  color: #1f4fae;
  background: linear-gradient(145deg, #f7f7f7, #dcdcdc);
  box-shadow:
    7px 7px 10px rgba(135, 135, 135, 0.42),
    -7px -7px 10px rgba(255, 255, 255, 0.92);
}

.legal-action:active {
  transform: translateY(0);
  color: #1f4fae;
  background: linear-gradient(145deg, #d7d7d7, #f2f2f2);
  box-shadow:
    inset 4px 4px 6px rgba(145, 145, 145, 0.32),
    inset -4px -4px 6px rgba(255, 255, 255, 0.88);
}

.legal-hero {
  background: var(--ek-bg-container);
  border-radius: 30px;
  padding: 32px 36px;
  box-shadow: var(--ek-shadow-container);
  margin-bottom: 22px;
  text-align: left;
}

.legal-kicker {
  font-size: .62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ek-blue);
  font-weight: 900;
  margin-bottom: 12px;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.8vw, 1.35rem); /* Reduced approx 50% */
  letter-spacing: -.02em;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-summary {
  max-width: 760px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ek-muted);
  margin: 0;
}

.legal-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-chip {
  border-radius: 30px;
  padding: 8px 16px;
  font-size: .68rem;
  font-weight: 800;
  color: #4e4e4e;
  background: var(--ek-bg-container);
  box-shadow: var(--ek-shadow-container);
  border: none;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--ek-bg-container);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--ek-shadow-container);
}

.legal-toc strong {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 14px;
  font-weight: 900;
  color: #888;
}

.legal-toc a {
  display: block;
  color: #444;
  text-decoration: none;
  font-size: .78rem;
  line-height: 1.4;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 700;
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--ek-blue);
}

.legal-content {
  background: var(--ek-bg-container);
  border-radius: 30px;
  padding: 36px 42px;
  box-shadow: var(--ek-shadow-container);
}

.legal-content section {
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-content h2 {
  font-size: .95rem;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-content h3 {
  font-size: .85rem;
  margin: 22px 0 10px;
  font-weight: 800;
}

.legal-content p,
.legal-content li {
  font-size: .84rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.legal-note {
  background: linear-gradient(145deg, #dcdcdc, #f8f8f8);
  border-radius: 20px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.05), inset -4px -4px 8px #ffffff;
}

.legal-footer-cta {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--ek-bg-container);
  border-radius: 30px;
  padding: 28px 32px;
  box-shadow: var(--ek-shadow-container);
}

.legal-footer-cta p {
  margin: 0;
  font-size: .82rem;
  color: #666;
  font-weight: 600;
}

.legal-footer-cta a:not(.legal-action) {
  color: var(--ek-blue);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(47, 140, 255, 0.2);
  transition: border-color 0.2s ease;
}

.legal-footer-cta a:not(.legal-action):hover {
  border-color: var(--ek-blue);
}

@media(max-width:860px) {
  .legal-layout {
    grid-template-columns: 1fr
  }

  .legal-toc {
    position: relative;
    top: 0
  }

  .legal-hero,
  .legal-content {
    padding: 28px
  }

  .legal-top {
    padding: 12px 18px;
  }

  .legal-brand img {
    width: 140px;
  }
}

@media(max-width:560px) {
  .legal-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    min-height: auto;
  }

  .legal-action {
    width: 100%
  }

  .legal-brand {
    width: 100%;
  }
}
