/*
 * Author: Andrey Morozov
 * Confidential. Proprietary and confidential. Unauthorized copying or distribution is prohibited.
 *
 * Defines the standalone 2mind legal-document presentation for Privacy, Terms,
 * and Contact routes. It mirrors the public landing's quiet white canvas,
 * typography, brand mark, spacing, and responsive behavior without changing
 * the shared IAM legal runtime or the legal copy rendered by that runtime.
 */

html[data-iam-legal-service="2mind"] {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

html[data-iam-legal-service="2mind"] body {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

html[data-iam-legal-service="2mind"] .iam-legal-document {
  --two-mind-ink: #5e5e5e;
  --two-mind-text: #707070;
  --two-mind-muted: #9c9c9c;
  --two-mind-faint: #b4b4b3;
  --two-mind-quiet: #c4c4c3;
  --two-mind-line: #e7e7e6;
  --two-mind-soft-line: #f0f0ef;
  --two-mind-accent: #929e91;
  --two-mind-accent-strong: #6f796e;
  min-height: 100vh;
  padding: 0;
  overflow: visible;
  background: #fff;
  color: var(--two-mind-text);
  font: 300 16px/1.72 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-topbar {
  min-height: 80px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--two-mind-soft-line);
  background: rgba(255, 255, 255, 0.96);
}

html[data-iam-legal-service="2mind"] .two-mind-legal-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 16px;
  color: var(--two-mind-ink);
  text-decoration: none;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-mark span {
  width: 22px;
  height: 2px;
  background: #d4d4d4;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-mark span:last-child {
  margin-left: 8px;
  background: var(--two-mind-accent);
}

html[data-iam-legal-service="2mind"] .two-mind-legal-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--two-mind-ink);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.02em;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-wordmark strong {
  font-size: 22px;
  font-weight: 300;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-wordmark sup {
  color: var(--two-mind-accent);
  font-size: 0.38em;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-wordmark em {
  color: var(--two-mind-faint);
  font-style: normal;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-actions,
html[data-iam-legal-service="2mind"] .two-mind-legal-lang {
  display: flex;
  align-items: center;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-actions {
  gap: 28px;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-lang {
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--two-mind-line);
  border-radius: 999px;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-lang a {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #767676;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-lang a[aria-current="true"] {
  background: #f2f2f1;
  color: var(--two-mind-ink);
}

html[data-iam-legal-service="2mind"] .two-mind-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--two-mind-accent-strong);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-back::after {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 0.35s ease;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-back:hover::after {
  width: 38px;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-main {
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
  padding: 104px 0 120px;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-intro {
  max-width: 820px;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-overline {
  margin: 0;
  color: var(--two-mind-faint);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-intro h1 {
  max-width: 780px;
  margin: 34px 0 0;
  color: var(--two-mind-ink);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-intro-note {
  max-width: 580px;
  margin: 30px 0 0;
  color: #767676;
  font-size: 17px;
  line-height: 1.7;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-layout {
  margin-top: 92px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(64px, 10vw, 160px);
  border-top: 1px solid var(--two-mind-line);
}

html[data-iam-legal-service="2mind"] .two-mind-legal-nav {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
  border: 0;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-nav a {
  position: relative;
  padding-left: 18px;
  color: #767676;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-nav a::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--two-mind-line);
  content: "";
  transition: background 0.3s ease, transform 0.3s ease;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-nav a:hover,
html[data-iam-legal-service="2mind"] .two-mind-legal-nav a[aria-current="page"] {
  color: var(--two-mind-accent-strong);
}

html[data-iam-legal-service="2mind"] .two-mind-legal-nav a[aria-current="page"]::before {
  background: var(--two-mind-accent);
  transform: scale(1.25);
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy {
  min-width: 0;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy > p:first-child {
  margin-top: -0.35em;
  color: var(--two-mind-text);
  font-size: 21px;
  line-height: 1.72;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy h2 {
  margin: 56px 0 16px;
  color: var(--two-mind-ink);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy p {
  margin: 0 0 18px;
  color: var(--two-mind-text);
  font-size: 16px;
  line-height: 1.78;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy a {
  color: var(--two-mind-accent-strong);
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy a:hover {
  color: var(--two-mind-ink);
  text-decoration-color: currentColor;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-copy a[href^="mailto:"] {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  letter-spacing: 0.015em;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-footer {
  width: min(1120px, calc(100% - 96px));
  margin: auto auto 0;
  padding: 30px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--two-mind-soft-line);
  color: var(--two-mind-quiet);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-footer a {
  color: var(--two-mind-accent-strong);
  text-decoration: none;
}

html[data-iam-legal-service="2mind"] .two-mind-legal-back:focus-visible,
html[data-iam-legal-service="2mind"] .two-mind-legal-brand:focus-visible,
html[data-iam-legal-service="2mind"] .two-mind-legal-lang a:focus-visible,
html[data-iam-legal-service="2mind"] .two-mind-legal-nav a:focus-visible,
html[data-iam-legal-service="2mind"] .two-mind-legal-copy a:focus-visible {
  outline: 2px solid var(--two-mind-accent-strong);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  html[data-iam-legal-service="2mind"] .two-mind-legal-topbar {
    min-height: 68px;
    padding: 0 24px;
    gap: 16px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-brand {
    gap: 12px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-mark span {
    width: 19px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-wordmark,
  html[data-iam-legal-service="2mind"] .two-mind-legal-wordmark strong {
    font-size: 16px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-actions {
    gap: 13px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-lang a {
    min-width: 29px;
    padding: 5px 6px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-back {
    gap: 0;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-back::after {
    width: auto;
    height: auto;
    background: none;
    content: "←";
    font-size: 16px;
    line-height: 1;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-main {
    width: calc(100% - 48px);
    padding: 68px 0 88px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-intro h1 {
    margin-top: 28px;
    font-size: clamp(40px, 12vw, 56px);
  }

  html[data-iam-legal-service="2mind"][lang="ru"] .two-mind-legal-intro h1 {
    overflow-wrap: anywhere;
    font-size: clamp(32px, 9vw, 48px);
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-intro-note {
    margin-top: 24px;
    font-size: 16px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-layout {
    margin-top: 64px;
    padding-top: 24px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-nav {
    flex-flow: row wrap;
    gap: 16px 20px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-copy > p:first-child {
    font-size: 19px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-copy h2 {
    margin-top: 44px;
  }

  html[data-iam-legal-service="2mind"] .two-mind-legal-footer {
    width: calc(100% - 48px);
    padding-bottom: 28px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-iam-legal-service="2mind"] *,
  html[data-iam-legal-service="2mind"] *::before,
  html[data-iam-legal-service="2mind"] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
