/* Перекус — shared legal pages stylesheet */

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

:root {
  --bg: #0e0e12;
  --surface: #16161c;
  --text: #e8e8ea;
  --muted: #9a9aa8;
  --accent: #7cd6a0;
  --border: #2a2a35;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.8;
}

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.site-header a {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header a:hover {
  opacity: 0.85;
}

/* ── Main content ── */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}

.page-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 40px 0 10px;
  color: var(--accent);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 14px;
}

ul, ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

/* Requisites block */
.requisites {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.requisites p {
  margin: 0 0 8px;
}

.requisites p:last-child {
  margin: 0;
}

.requisites .label {
  color: var(--muted);
  font-size: 0.8125rem;
  display: block;
  margin-bottom: 2px;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer nav {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer nav a:hover {
  color: var(--accent);
}

/* ── Consent «signing» block ── */
.consent-sign {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 32px 0 8px;
}

.consent-sign-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.5;
}

.consent-sign-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-confirm-btn {
  margin-top: 16px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0e0e12;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.consent-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.consent-confirm-btn:not(:disabled):hover {
  opacity: 0.9;
}

.consent-sign-done {
  margin: 16px 0 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  font-size: 0.9375rem;
}

.cookie-banner p { margin: 0; flex: 1 1 260px; }

.cookie-banner button {
  min-height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0e0e12;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.cookie-banner button:hover { opacity: 0.9; }

/* ── mailto consent gate ── */
.mailto-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.mailto-gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
}

.mailto-gate-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--text); }
.mailto-gate-card p { margin: 0 0 18px; color: var(--muted); }

.mailto-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mailto-gate-actions a,
.mailto-gate-actions button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mailto-gate-actions a.primary {
  background: var(--accent);
  color: #0e0e12;
  border-color: var(--accent);
}

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  main { padding: 24px 16px 40px; }
}
