* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

::selection {
  background: rgba(137, 82, 243, 0.35);
  color: #fff;
}

#yc-root[data-theme="dark"] {
  --footer-wash: linear-gradient(180deg, #101010 0%, #17102A 14%, #241645 32%, #3D2185 62%, #7C3AED 100%);
  --footer-hair: rgba(255,255,255,0.18);
  --footer-hair2: rgba(255,255,255,0.42);
  --footer-dim: rgba(255,255,255,0.55);
  --footer-dim2: rgba(255,255,255,0.58);
  --footer-fg: rgba(255,255,255,0.82);
  --footer-fg-strong: #fff;
  --footer-word: rgba(255,255,255,0.08);
  --footer-chip-bg: rgba(255,255,255,0.1);
  --footer-chip-bd: rgba(255,255,255,0.16);
  --footer-chip-fg: #fff;
  --footer-chip-hbg: #fff;
  --footer-chip-hfg: #141414;
  --footer-glow-op: 1;
  --hero-wash: radial-gradient(125% 90% at 50% 10%, rgba(124,58,237,0.82) 0%, rgba(88,42,190,0.52) 38%, rgba(45,22,110,0.22) 62%, rgba(23,16,48,0) 78%);
  --dot-a: rgba(255,255,255,0.12);
  --dot-b: rgba(255,255,255,0.055);
  --nav-hover: #fff;
}

#yc-root[data-theme="light"] {
  --footer-wash: linear-gradient(180deg, #FFFFFF 0%, #F8F3FE 12%, #EFE4FC 34%, #E3D2FA 64%, #D5BEF7 100%);
  --footer-hair: rgba(9,9,9,0.14);
  --footer-hair2: rgba(9,9,9,0.32);
  --footer-dim: rgba(9,9,9,0.5);
  --footer-dim2: rgba(9,9,9,0.52);
  --footer-fg: rgba(9,9,9,0.78);
  --footer-fg-strong: #090909;
  --footer-word: rgba(255,255,255,0.24);
  --footer-chip-bg: rgba(9,9,9,0.05);
  --footer-chip-bd: rgba(9,9,9,0.12);
  --footer-chip-fg: #1A1233;
  --footer-chip-hbg: #090909;
  --footer-chip-hfg: #fff;
  --footer-glow-op: 0.42;
  --hero-wash: radial-gradient(125% 90% at 50% 10%, oklch(0.58 0.28 295 / 0.42) 0%, oklch(0.62 0.26 293 / 0.26) 38%, oklch(0.70 0.21 291 / 0.09) 62%, oklch(0.78 0.16 290 / 0) 78%);
  --dot-a: oklch(0.52 0.21 293 / 0.28);
  --dot-b: oklch(0.52 0.21 293 / 0.13);
  --nav-hover: #090909;
}

#yc-root {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text-primary);
}

.yc-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 14px 24px;
  pointer-events: none;
}

.yc-nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: 1120px;
  height: 62px;
  padding: 0 14px 0 22px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.yc-nav__brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 116px;
}

.yc-nav__brand img {
  height: 26px;
  width: auto;
  display: block;
}

.yc-logo-light {
  display: none !important;
}

#yc-root[data-theme="dark"] .yc-logo-dark {
  display: none !important;
}

#yc-root[data-theme="dark"] .yc-logo-light {
  display: block !important;
}

.yc-nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.yc-nav__links a,
.yc-nav__right a,
.yc-nav__right button {
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.yc-nav__links a:hover,
.yc-nav__right a:hover,
.yc-nav__right button:hover {
  color: var(--nav-hover);
}

.yc-nav__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.yc-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.yc-login-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1.5px solid var(--yu-coral);
  color: #FF5200;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 0 16px rgba(242,106,90,0.42), inset 0 0 6px rgba(242,106,90,0.32);
}

.yc-burger {
  display: none;
  position: relative;
}

.yc-burger summary {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.yc-burger summary::-webkit-details-marker {
  display: none;
}

.yc-burger i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.yc-burger__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-shadow);
}

.yc-burger__menu a {
  padding: 12px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.yc-burger__menu a:hover {
  background: rgba(137,82,243,0.1);
}

.yc-legal-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 24px 74px;
  background: var(--hero-wash), var(--bg-deep);
}

.yc-legal-hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot-a) 1.4px, transparent 1.5px), radial-gradient(var(--dot-b) 1px, transparent 1.1px);
  background-size: 64px 64px, 16px 16px;
  -webkit-mask-image: radial-gradient(78% 62% at 50% 26%, #000 0%, rgba(0,0,0,0.55) 48%, transparent 82%);
  mask-image: radial-gradient(78% 62% at 50% 26%, #000 0%, rgba(0,0,0,0.55) 48%, transparent 82%);
}

.yc-legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
}

.yc-legal-kicker {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.yc-legal-hero h1 {
  margin: 0;
  max-width: 14ch;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.yc-legal-date {
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.yc-legal-main {
  padding: 72px 24px 120px;
  background: var(--bg-base);
}

.yc-legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.yc-legal-content {
  min-width: 0;
  max-width: 790px;
}

.yc-legal-content h2,
.yc-legal-content h3 {
  margin: 46px 0 14px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.yc-legal-content h2 {
  font-size: 26px;
}

.yc-legal-content h3 {
  font-size: 20px;
}

.yc-legal-content p,
.yc-legal-content li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.72;
}

.yc-legal-content p {
  margin: 0 0 18px;
}

.yc-legal-content ul,
.yc-legal-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

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

.yc-legal-content strong {
  color: var(--text-primary);
}

.yc-legal-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yc-legal-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--surface-1);
  box-shadow: var(--card-drop, 0 20px 60px rgba(9,9,9,0.08));
}

.yc-legal-side__title {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.yc-legal-side a {
  display: flex;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.35;
}

.yc-legal-side a:hover,
.yc-legal-side a[aria-current="page"] {
  background: var(--accent-quiet);
  color: var(--text-primary);
}

.yc-footer {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 36px;
  background: var(--footer-wash);
}

.yc-footer__glow-a,
.yc-footer__glow-b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--footer-glow-op);
}

.yc-footer__glow-a {
  height: 88%;
  background: radial-gradient(140% 130% at 50% 128%, rgba(255,152,74,0.9) 0%, rgba(244,116,96,0.66) 16%, rgba(233,98,168,0.48) 30%, rgba(150,72,240,0.36) 46%, rgba(124,58,237,0.20) 62%, rgba(124,58,237,0) 82%);
}

.yc-footer__glow-b {
  height: 52%;
  background: linear-gradient(0deg, rgba(255,150,70,0.30) 0%, rgba(255,150,70,0.12) 40%, rgba(255,150,70,0) 100%);
  mix-blend-mode: screen;
}

.yc-footer__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.yc-footer__rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
}

.yc-footer__rule::before,
.yc-footer__rule::after {
  content: "";
  flex: 1;
  min-height: 2px;
  background: linear-gradient(90deg, transparent, var(--footer-hair2, var(--footer-hair)) 85%, var(--footer-hair2, var(--footer-hair)));
}

.yc-footer__rule::after {
  background: linear-gradient(270deg, transparent, var(--footer-hair2, var(--footer-hair)) 85%, var(--footer-hair2, var(--footer-hair)));
}

.yc-footer__rule span {
  color: var(--footer-dim);
  font-size: 18px;
  line-height: 1;
}

.yc-footgrid {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 36px 120px;
  align-items: stretch;
}

.yc-footcol {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.yc-footcol--contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
  justify-self: end;
}

.yc-footcol__title {
  color: var(--footer-dim);
  font-size: 13px;
  font-weight: 600;
}

.yc-footcol__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: end;
}

.yc-footcol a,
.yc-footcol__links span {
  color: var(--footer-fg);
  font-size: 15px;
  line-height: 1.4;
}

.yc-footcol a:hover {
  color: var(--footer-fg-strong);
}

.yc-socials {
  display: flex;
  gap: 10px;
}

.yc-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--footer-chip-bg);
  border: 1px solid var(--footer-chip-bd);
  color: var(--footer-chip-fg);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.yc-socials a:hover {
  background: var(--footer-chip-hbg);
  border-color: var(--footer-chip-hbg);
  color: var(--footer-chip-hfg);
}

.yc-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 110px;
  color: var(--footer-dim2);
  font-size: 13px;
  line-height: 1.6;
}

.yc-footer__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.yc-footer__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-0.10em - 10px);
  z-index: 1;
  color: var(--footer-word);
  font-family: var(--font-display);
  font-size: 400px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 979px) {
  .yc-nav__links {
    display: none;
  }

  .yc-burger {
    display: block;
    order: 3;
  }

  .yc-icon-btn,
  .yc-login-btn {
    min-height: 44px;
  }

  .yc-legal-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .yc-legal-hero h1 {
    font-size: 60px;
  }

  .yc-legal-side {
    position: static;
    order: -1;
  }

  .yc-footgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .yc-footer__word {
    font-size: 260px;
  }

  .yc-footcol--contacts {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .yc-footcol a,
  .yc-footcol__links span {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 759px) {
  .yc-nav {
    padding: 10px 16px;
  }

  .yc-nav__inner {
    gap: 12px;
    padding: 0 10px 0 16px;
  }

  .yc-login-btn {
    display: none;
  }

  .yc-legal-hero {
    padding: 126px 20px 56px;
  }

  .yc-legal-hero h1 {
    font-size: 52px;
  }

  .yc-legal-main {
    padding: 48px 20px 80px;
  }

  .yc-legal-content h2 {
    font-size: 23px;
  }

  .yc-legal-content h3 {
    font-size: 19px;
  }

  .yc-legal-content p,
  .yc-legal-content li {
    font-size: 15.5px;
  }

  .yc-footgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yc-footcol--contacts {
    grid-column: auto;
  }

  .yc-footer {
    padding: 56px 20px 36px;
  }

  .yc-footer__word {
    font-size: 130px;
  }
}

@media (max-width: 520px) {
  .yc-legal-hero h1 {
    font-size: 34px;
  }

  .yc-footer__word {
    font-size: 64px;
  }
}
