﻿:root {
  --font-ui: "DM Sans", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --bg: #F4F5F6;
  --text: #2D313A;
  --muted: #6B6F76;
  --white: #ffffff;
  --border: #E2E3E6;
  --ink: #2B2D32;
  --ink-soft: #555960;
  --line: #C8CAD0;
  --bk: #8C9099;
  --bk-10: #F0F1F3;
  --bk-dark: #555960;
  --shimmer-title: #242A35;
  --shimmer-text: #4A5363;
  --shimmer-muted: #667083;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(
    118deg,
    #E2E4E8 0%, #ECEDEF 22%, #DBDDE2 45%, #D3D6DD 68%, #ECEDEF 82%, #E2E4E8 100%
  );
  background-size: 300% 300%;
  animation: shimmer 12s ease-in-out infinite;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


a[x-apple-data-detectors],
a[x-apple-data-detectors] * {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: none;
}

.container {
  width: min(1020px, calc(100% - 40px));
  margin: 0 auto;
}

main.container {
  padding-top: 32px;
  padding-bottom: 62px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: var(--bk-dark);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.legal-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-nav__link:hover {
  color: var(--ink);
  border-color: var(--bk-dark);
  background: rgba(255, 255, 255, 0.9);
}

.legal-nav__link.is-current {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.legal-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 253, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(22px, 2.9vw, 34px);
  box-shadow:
    0 26px 58px rgba(38, 41, 48, 0.14),
    0 8px 18px rgba(38, 41, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.legal-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(90, 95, 106, 0.45) 20%, rgba(42, 45, 52, 0.95) 50%, rgba(90, 95, 106, 0.45) 80%, transparent 100%);
}

.legal-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -95px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 157, 166, 0.23) 0%, rgba(153, 157, 166, 0) 70%);
  pointer-events: none;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.2vw, 54px);
  line-height: 1.05;
  font-weight: 500;
  margin-bottom: 14px;
  padding-right: min(18vw, 200px);
}

.muted {
  margin: 0 0 22px;
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.8vw, 33px);
  line-height: 1.14;
  font-weight: 500;
  margin-top: 34px;
  margin-bottom: 14px;
  padding-top: 15px;
}

h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, var(--bk-dark) 0%, rgba(85, 89, 96, 0) 100%);
}

p,
li {
  font-size: clamp(15px, 1.25vw, 17px);
  margin: 0 0 12px;
  color: var(--text);
}

ul {
  list-style: none;
  margin: 0 0 8px;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 0;
}

li::before {
  content: none;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-note {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 14px 14px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer {
  margin-top: 24px;
  padding: 60px 0 56px;
  background: linear-gradient(
    118deg,
    #E2E4E8 0%, #ECEDEF 22%, #DBDDE2 45%, #D3D6DD 68%, #ECEDEF 82%, #E2E4E8 100%
  );
  background-size: 300% 300%;
  animation: shimmer 12s ease-in-out infinite;
  color: var(--shimmer-text);
  border-top: 1px solid var(--border);
}

.footer .container {
  width: min(1160px, calc(100% - 40px));
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 1fr) minmax(280px, 1fr);
  align-items: start;
  gap: 44px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--shimmer-title);
  letter-spacing: 0.03em;
  line-height: 1;
}

.footer__sub {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--shimmer-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__legal {
  flex: 1;
  max-width: 380px;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  max-width: 440px;
  justify-self: end;
}

.footer__title {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shimmer-muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--shimmer-text);
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--shimmer-title);
}

.footer__details {
  text-align: right;
}

.footer__line {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--shimmer-text);
  line-height: 1.55;
}

.footer__line:last-child {
  margin-bottom: 0;
}

.footer__contact {
  color: var(--shimmer-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(43,45,50,.22);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer__contact:hover {
  color: var(--shimmer-title);
  border-bottom-color: rgba(43,45,50,.5);
}

.footer__copy {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--shimmer-muted);
}

@media (max-width: 768px) {
  .container,
  .footer .container {
    width: min(100%, calc(100% - 32px));
  }

  main.container {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .back-link {
    font-size: 10px;
    padding: 8px 12px;
  }

  .legal-nav {
    gap: 6px;
    margin-bottom: 14px;
  }

  .legal-nav__link {
    min-height: 34px;
    font-size: 10px;
    padding: 0 10px;
  }

  .legal-card {
    border-radius: 12px;
    padding: 20px 15px 18px;
  }

  .legal-card::after {
    width: 170px;
    height: 170px;
    right: -70px;
    top: -100px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 40px);
    padding-right: 0;
  }

  h2 {
    font-size: clamp(22px, 6.6vw, 28px);
    margin-top: 26px;
    padding-top: 12px;
  }

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

  .footer {
    margin-top: 16px;
    padding: 40px 0 36px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__name {
    font-size: 22px;
  }

  .footer__legal {
    max-width: 100%;
  }

  .footer__right {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    gap: 12px;
    justify-self: start;
  }

  .footer__details {
    text-align: left;
  }

  .footer__line,
  .footer__link,
  .footer__contact {
    font-size: 14px;
    line-height: 1.55;
  }

  .footer__copy {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .container,
  .footer .container {
    width: calc(100% - 24px);
  }

  main.container {
    padding-top: 14px;
    padding-bottom: 26px;
  }

  .back-link {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .legal-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-nav__link {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
  }

  .legal-card {
    padding: 16px 12px 14px;
  }

  h1 {
    font-size: clamp(28px, 9.5vw, 34px);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .muted {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
  }

  h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    padding-top: 10px;
    font-size: clamp(20px, 7vw, 24px);
  }

  h2::before {
    width: 56px;
  }

  p,
  li {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  li {
    padding-left: 0;
  }

  .footer {
    padding: 28px 0;
  }

  .footer__inner {
    gap: 18px;
  }

  .footer__title {
    margin-bottom: 8px;
  }

  .footer__links {
    gap: 7px;
  }

  .footer__line,
  .footer__link {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .container,
  .footer .container {
    width: calc(100% - 18px);
  }

  .legal-card {
    border-radius: 10px;
    padding: 14px 10px 12px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 19px;
  }

  .footer__name {
    font-size: 18px;
  }
}
