/* Юридические страницы VOIDTWEAKS: оферта, политика, возврат, контакты. */

@font-face {
  font-family: 'Onest';
  src: url('fonts/onest-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('fonts/onest-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('fonts/onest-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #030303;
  --surface: #0D0D0F;
  --line: #1F1F23;
  --line-2: #2A2A2E;
  --text: #FFFFFF;
  --text-2: #A1A1AA;
  --text-3: #7C7C86;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--text-2); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px 72px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.back { font-size: 14px; color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--text); }

h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
h2 { margin: 38px 0 12px; font-size: 20px; line-height: 1.3; }
h3 { margin: 26px 0 8px; font-size: 16.5px; }
p, li { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; color: #D4D4D8; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 600; }

.meta { color: var(--text-3); font-size: 13.5px; margin-bottom: 26px; }

.note {
  margin: 18px 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-2); font-size: 14.5px;
}
.note p { margin: 0; color: var(--text-2); font-size: 14.5px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #D4D4D8; }
td:first-child { width: 42%; color: var(--text-2); }

footer {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between;
  color: var(--text-3); font-size: 13.5px;
}
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .wrap { padding: 0 18px 56px; }
  td:first-child { width: 46%; }
}

/* ---------- guide ---------- */
.toc { margin: 0 0 36px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc p { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.toc li { margin: 0 0 8px; font-size: 14.5px; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: #fff; }
.steps-guide { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
.steps-guide li { position: relative; padding-left: 40px; margin-bottom: 16px; }
.steps-guide li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: #fff; white-space: nowrap; }
.guide-table td:first-child { width: 40%; }
@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .kbd { display: block; max-width: 100%; overflow-x: auto; }
}

/* ---------- contacts ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap-wide { max-width: 1120px; }
.intro { max-width: 760px; padding: 46px 0 38px; }
.intro h1 { margin-bottom: 14px; }
.lead {
  max-width: 600px; margin: 0;
  color: var(--text-2); font-size: 17px; line-height: 1.6;
}

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; padding-bottom: 54px;
}
.card {
  display: flex; flex-direction: column;
  min-height: 200px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, background .2s ease;
}
.card:hover { border-color: var(--line-2); background: #101013; }
.card h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 9px; font-size: 18px; letter-spacing: -0.01em;
}
.card h2 svg {
  width: 20px; height: 20px; flex: 0 0 20px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.card p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.card a {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content; margin-top: auto;
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.card a svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card a:hover svg { transform: translateX(2px); }

.req { padding-top: 34px; border-top: 1px solid var(--line); }
.req h2 { margin: 0 0 6px; }
.req .note { margin: 0 0 18px; }

.req dl {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr;
  margin: 0; border-top: 1px solid var(--line);
}
.req dt, .req dd {
  margin: 0; padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.55;
}
.req dt { color: var(--text-3); }
.req dd { color: #D4D4D8; }
.req dd a { color: #D4D4D8; }

/* ---------- big footer ---------- */

footer.bigfoot {
  display: block;
  margin-top: 54px; padding: 34px 34px 22px;
  border: 1px solid var(--line); border-radius: 24px;
}
.bigfoot .cols {
  display: grid; grid-template-columns: 1.3fr .9fr .9fr; gap: 28px;
}
.bigfoot .brand { margin-bottom: 18px; }
.bigfoot h2 {
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
}
.bigfoot nav { display: flex; flex-direction: column; gap: 10px; }
.bigfoot nav a { color: var(--text-2); font-size: 14.5px; text-decoration: none; }
.bigfoot nav a:hover { color: var(--text); }
.bigfoot .bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 13px;
}
.bigfoot .bottom a { color: var(--text-3); text-decoration: none; }
.bigfoot .bottom a:hover { color: var(--text-2); }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:last-child { grid-column: 1 / -1; min-height: 170px; }
  .bigfoot .cols { grid-template-columns: 1fr 1fr; }
  .bigfoot .cols > section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .intro { padding: 34px 0 28px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 38px; }
  .card:last-child { grid-column: auto; min-height: 200px; }
  .req dl { grid-template-columns: 1fr; }
  .req dt { padding-bottom: 0; border-bottom: 0; }
  .req dd { padding-top: 4px; }
  footer.bigfoot { padding: 26px 22px 18px; }
  .bigfoot .cols { grid-template-columns: 1fr; gap: 26px; }
}
