:root {
  color-scheme: light;
  --ink: #102a23;
  --muted: #60756f;
  --green: #169b6d;
  --green-dark: #0b382e;
  --soft: #eaf7f1;
  --line: #d7e5e0;
  --warning: #fff6dd;
  --shadow: 0 28px 80px rgba(10, 48, 39, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg,#edf8f3 0,#fff 360px); color: var(--ink); font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color: inherit; }
.legal-shell { width: min(1040px,calc(100% - 36px)); margin: 0 auto; padding: 16px 0 64px; }
.legal-top { position: sticky; top: 10px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px rgba(10,48,39,.07); backdrop-filter: blur(18px); }
.legal-top img { width: 80px; height: 54px; object-fit: contain; display: block; }
.legal-top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.legal-top nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 13px; font-weight: 850; text-decoration: none; }
.legal-card { margin-top: 30px; padding: clamp(24px,5vw,54px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 13px; color: var(--green); font-size: 14px; font-weight: 900; text-transform: uppercase; }
h1 { max-width: 880px; margin: 0 0 18px; font-size: clamp(39px,6.4vw,70px); line-height: .98; letter-spacing: -.035em; }
.legal-lead { max-width: 850px; margin: 0; color: var(--muted); font-size: 18px; font-weight: 650; line-height: 1.65; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 30px; }
.legal-meta span { padding: 8px 12px; border-radius: 999px; background: var(--soft); color: var(--green-dark); font-size: 13px; font-weight: 850; }
.legal-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.legal-summary article { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #f8fbf9; }
.legal-summary strong { display: block; margin-bottom: 7px; }
.legal-summary p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.55; }
.legal-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 28px 0 8px; padding: 16px; border-radius: 17px; background: var(--soft); }
.legal-nav a { color: var(--green-dark); font-size: 13px; font-weight: 850; text-decoration: none; }
.legal-section { scroll-margin-top: 100px; padding: 28px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 15px; font-size: clamp(24px,3vw,32px); line-height: 1.15; }
.legal-section h3 { margin: 22px 0 9px; font-size: 19px; }
.legal-section p,.legal-section li { color: var(--muted); font-size: 16px; font-weight: 620; line-height: 1.72; }
.legal-section p { margin: 0 0 12px; }
.legal-section ul,.legal-section ol { margin: 10px 0 0; padding-left: 24px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--green); font-weight: 850; text-underline-offset: 3px; }
.legal-note { margin: 17px 0 5px; padding: 17px 18px; border: 1px solid rgba(22,155,109,.22); border-radius: 15px; background: var(--soft); color: var(--green-dark); font-weight: 780; line-height: 1.6; }
.legal-note.warning { border-color: #efd69b; background: var(--warning); color: #6b5116; }
.formula { display: grid; gap: 8px; margin: 16px 0; padding: 20px; border-radius: 17px; background: var(--green-dark); color: #fff; }
.formula strong { font-size: 19px; }
.formula span { color: rgba(255,255,255,.73); font-size: 14px; font-weight: 650; line-height: 1.5; }
.requisites { display: grid; grid-template-columns: 180px minmax(0,1fr); margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.requisites dt,.requisites dd { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.requisites dt { background: #f7faf8; color: var(--muted); font-weight: 750; }
.requisites dd { overflow-wrap: anywhere; color: var(--green-dark); font-weight: 820; }
.requisites dt:last-of-type,.requisites dd:last-of-type { border-bottom: 0; }
.legal-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 2px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.legal-footer a { color: var(--green-dark); }
.partner-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.partner-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 13px; background: #ffdc57; color: #112a23; font-weight: 900; text-decoration: none; }
.partner-button.secondary { border: 1px solid var(--line); background: #fff; }
.partner-track { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 22px; }
.partner-track div { padding: 18px; border-radius: 15px; background: var(--soft); }
.partner-track b { display: block; margin-bottom: 6px; color: var(--green); }
.partner-track span { color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.45; }
@media (max-width:760px) {
  .legal-shell { width: min(100% - 24px,1040px); padding-top: 10px; }
  .legal-top { align-items: flex-start; }
  .legal-top nav a:not(:last-child) { display: none; }
  .legal-card { margin-top: 20px; border-radius: 20px; }
  .legal-summary,.legal-nav,.partner-track { grid-template-columns: 1fr; }
  .requisites { grid-template-columns: 1fr; }
  .requisites dt { padding-bottom: 4px; border-bottom: 0; }
  .requisites dd { padding-top: 4px; }
  .legal-footer { flex-direction: column; }
  .partner-hero-actions { display: grid; }
}
