:root {
  color-scheme: light;
  --brand-pink: #ec0074;
  --brand-blue: #1683ff;
  --brand-cyan: #00bfe8;
  --ink: #172033;
  --muted: #5e6b7e;
  --surface: #ffffff;
  --background: #f4f6fa;
  --line: #dce2eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(22px, calc((100% - 1050px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.legal-back,
.legal-contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-pink);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

.legal-shell {
  width: min(1050px, calc(100% - 32px));
  margin: 34px auto 56px;
}

.legal-hero,
.legal-content,
.legal-index {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.legal-hero {
  border-radius: 22px;
  padding: clamp(24px, 5vw, 52px);
}

.legal-eyebrow {
  margin: 0 0 8px;
  color: var(--brand-pink);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
}

.legal-hero > p:not(.legal-eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-updated {
  margin-bottom: 0;
  font-size: 0.94rem !important;
}

.legal-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  border-radius: 16px;
  padding: 14px;
}

.legal-index a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #075fbd;
  font-weight: 750;
  padding: 8px 14px;
  text-decoration: none;
}

.legal-content {
  border-radius: 22px;
  padding: clamp(22px, 5vw, 52px);
}

.legal-content section {
  scroll-margin-top: 94px;
}

.legal-content section + section {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.legal-content h2 {
  margin: 0 0 12px;
  color: #12233f;
  font-size: 1.45rem;
}

.legal-content p,
.legal-content li {
  color: #334155;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-footer {
  background: #161b22;
  color: #ffffff;
  padding: 26px 20px;
  text-align: center;
}

@media (max-width: 620px) {
  .legal-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .legal-brand span {
    display: none;
  }

  .legal-back {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.9rem;
  }

  .legal-shell {
    width: min(100% - 20px, 1050px);
    margin-top: 16px;
  }

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

  .legal-index a {
    justify-content: center;
    text-align: center;
  }
}
