@import url("/typography.generated.css");
:root {
  font-family: var(--font-legal-body);

  color: #1e293b;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.8;
  background: #f8fafc;
}

.legal-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #0f172a;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.3;
  color: #0f172a;
}

.updated {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

section {
  margin: 36px 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #0f172a;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
}

h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #1e293b;
}

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

ul, ol {
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #0f172a;
}

blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  background: #f1f5f9;
  border-left: 4px solid #6366f1;
  border-radius: 0 8px 8px 0;
  color: #334155;
}

a {
  color: #4f46e5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.legal-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.legal-nav a {
  color: #64748b;
  font-size: 13px;
}

.legal-nav a:hover {
  color: #0f172a;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 14px;
  color: #64748b;
}

.lang-switcher a,
.lang-switcher span.lang-btn {
  display: inline-block;
  color: #64748b;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  transition: all 0.2s ease;
}

.lang-switcher a:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f1f5f9;
  text-decoration: none;
}

.lang-switcher .active-lang {
  color: #4f46e5;
  font-weight: 600;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.lang-conflict-note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .legal-page {
    width: min(100% - 28px, 820px);
    padding-top: 28px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 18px;
  }
}
