:root {
  --bg-main: #f7f7f7;
  --text: #000000;
  --text-muted: rgba(0, 0, 0, 0.62);
  --link: #7c3aed;
  --brand-dot: #ef4444;
  --border: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background-color: var(--brand-dot);
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  text-decoration: underline;
}

.legal-content {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
  background: #fff;
}

.legal-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.75rem 0 1rem;
  line-height: 1.35;
}

.legal-content h1:first-child {
  margin-top: 0;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 0.875rem;
  color: var(--text);
}

.legal-content ul,
.legal-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content li {
  margin-bottom: 0.375rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.9375rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--bg-main);
  font-weight: 600;
}

.legal-content a {
  color: var(--link);
}

.legal-content strong {
  font-weight: 600;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.footer-links a.is-active {
  color: var(--text);
  font-weight: 500;
}

.footer-cabinet {
  font-size: 0.875rem;
}

.footer-cabinet a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.footer-cabinet a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-content {
    padding: 24px 16px 32px;
  }

  .legal-content table {
    font-size: 0.8125rem;
  }

  .legal-content th,
  .legal-content td {
    padding: 8px;
  }
}
