﻿@import url("https://fonts.googleapis.com/css2?family=Forum&family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600&display=swap");

:root {
  --deep: #0a0a1c;
  --gold: #f8ecb3;
  --gold-soft: #fff7d2;
  --text: #1b1b2b;
  --muted: #55596d;
  --line: rgba(27, 27, 43, 0.12);
  --paper: #fffdf8;
  --content: 1100px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #fff;
  background: var(--deep);
  font-family: "Montserrat", Arial, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

svg {
  display: block;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(106, 13, 173, 0.22), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(15, 240, 252, 0.08), transparent 24%),
    var(--deep);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 32px), var(--content));
  transform: translateX(-50%);
  padding: 16px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 21px;
  height: 20px;
  border-radius: 5px;
  background:
    center / cover no-repeat url("https://con.xl.ru/jLdvFS9X2UqmCxo_fOj78Q/images/CuR-igL7ckC70tht05EKyA.png"),
    linear-gradient(318deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}

.brand-text {
  font-family: "Forum", Georgia, serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.site-nav a {
  color: #e5e7eb;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(248, 236, 179, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
}

.legal-page {
  flex: 1;
  padding: 112px 0 72px;
}

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

.legal-card {
  padding: 42px clamp(20px, 3vw, 44px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px),
    var(--paper);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.legal-eyebrow {
  margin: 0 0 14px;
  color: #7a7f94;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
}

.legal-meta {
  margin: 0 0 28px;
  color: #7a7f94;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.legal-section + .legal-section {
  margin-top: 34px;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-family: "Forum", Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.legal-section a {
  color: #365fca;
  word-break: break-word;
}

.legal-section--operator {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.site-footer {
  width: 100%;
  padding: 40px max(24px, calc((100vw - 1200px) / 2 + 89px)) 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  background: #000204;
}

.site-footer__brand {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.brand--footer {
  margin-bottom: 28px;
}

.site-footer__brand p,
.site-footer__links a {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.site-footer__links {
  display: grid;
  gap: 2px;
  max-width: 525px;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(248, 236, 179, 0.85);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
    padding: 14px 18px;
  }

  .site-nav {
    gap: 20px;
  }

  .social-links {
    gap: 8px;
  }

  .legal-card {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .site-footer {
    padding: 34px 24px;
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 8px;
    width: min(calc(100% - 28px), var(--content));
    padding: 16px 19px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 28px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
  }

  .nav-toggle span {
    width: 18px;
    height: 1.5px;
    border-radius: 99px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .social-links {
    display: none;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 4px;
  }

  .site-nav.is-open + .social-links,
  .site-header:has(.site-nav.is-open) .social-links {
    display: flex;
  }

  .legal-page {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .legal-container {
    width: min(calc(100% - 20px), 1200px);
  }

  .legal-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .legal-section + .legal-section {
    margin-top: 28px;
  }

  .site-footer {
    padding: 28px 20px;
  }

  .site-footer__brand p,
  .site-footer__links a {
    font-size: 15px;
  }
}

