:root {
  --bg: #ffffff;
  --section: #fbf8fb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #91446f;
  --brand2: #7d3c62;
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.legal-page {
  padding: 56px 0 88px;
  background: #fff;
}

.legal-page--interactive {
  padding: 0 0 88px;
}

.legal-page--interactive .linkio-header {
  border-bottom-color: transparent;
  box-shadow: none;
}

.legal-hero--interactive {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(145, 68, 111, .025) 16%,
    rgba(145, 68, 111, .055) 46%,
    rgba(145, 68, 111, .08) 100%
  );
}

.legal-page--privacy {
  padding: 0 0 88px;
}

.legal-page-view--privacy .linkio-header {
  border-bottom-color: transparent;
  box-shadow: none;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(145, 68, 111, .025) 16%,
    rgba(145, 68, 111, .055) 46%,
    rgba(145, 68, 111, .08) 100%
  );
  padding: 86px 0 66px;
}

.legal-hero-container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.7vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -.05em;
  font-weight: 600;
  color: #0f172a;
}

.legal-hero-date {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

.legal-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 500;
}

.legal-embed-wrap {
  padding: 40px 0 0;
}

.legal-embed-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 32px;
}

.legal-embed-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e7d6e0;
  background: #fbf6f9;
  color: var(--brand);
  font-size: .84rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 18px;
}

.legal-embed-content {
  min-height: 320px;
}

.legal-page--interactive .legal-shell {
  margin-top: 48px;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
}

.legal-page--interactive .legal-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-page--interactive .legal-sidebar a {
  display: block;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.legal-page--interactive .legal-sidebar a:hover,
.legal-page--interactive .legal-sidebar a.is-active {
  background: #f8eef4;
  color: var(--brand);
}

.legal-page--interactive .legal-content {
  max-width: 900px;
}

.legal-page--interactive .legal-section {
  padding: 0;
  margin: 0;
  border-bottom: 0;
}

.legal-richtext h1:first-child,
.legal-richtext h2:first-child,
.legal-richtext h3:first-child {
  margin-top: 0;
}

.legal-richtext h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 700;
  margin: 0 0 26px;
  color: var(--ink);
}

.legal-richtext h2 {
  font-size: 1.16rem;
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink);
}

.legal-richtext h2:first-of-type {
  font-size: 1.32rem;
  margin-top: 0;
}

.legal-richtext h3 {
  font-size: .98rem;
  line-height: 1.32;
  font-weight: 560;
  margin: 18px 0 6px;
  color: var(--ink);
}

.legal-richtext p,
.legal-richtext li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
}

.legal-richtext p {
  margin: 8px 0 0;
}

.legal-richtext ul,
.legal-richtext ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

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

.legal-richtext a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  gap: 56px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-sidebar a {
  display: block;
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
}

.legal-sidebar a:hover,
.legal-sidebar a.is-active {
  background: var(--section);
  color: var(--brand);
}

.legal-content {
  max-width: 820px;
}

.legal-section {
  padding: 0 0 82px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 82px;
  scroll-margin-top: 36px;
}

.legal-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-date {
  color: var(--brand);
  font-size: .9rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.legal-page:not(.legal-page--interactive) .legal-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 850;
  margin: 0 0 34px;
}

.legal-page:not(.legal-page--interactive) .legal-content h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 850;
  margin: 38px 0 12px;
}

.legal-page:not(.legal-page--interactive) .legal-content h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 850;
  margin: 22px 0 8px;
}

.legal-page:not(.legal-page--interactive) .legal-content p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
  margin: 10px 0 0;
}

.legal-page:not(.legal-page--interactive) .legal-content ul,
.legal-page:not(.legal-page--interactive) .legal-content ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.legal-page:not(.legal-page--interactive) .legal-content li + li {
  margin-top: 8px;
}

.legal-page:not(.legal-page--interactive) .legal-content a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .legal-page--privacy {
    padding-bottom: 64px;
  }

  .legal-page--interactive {
    padding-bottom: 64px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .legal-page--interactive .legal-sidebar a {
    padding: 6px 0;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-page {
    padding: 36px 0 64px;
  }

  .legal-hero {
    padding: 68px 0 52px;
  }

  .legal-embed-wrap {
    padding-top: 24px;
  }

  .legal-embed-shell {
    width: min(1180px, calc(100% - 24px));
    border-radius: 22px;
    padding: 18px 16px 24px;
  }

  .legal-section {
    padding-bottom: 58px;
    margin-bottom: 58px;
  }
}
