:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2d3044;
  --accent: #4f8ef7;
  --text: #e2e4f0;
  --text-sub: #8b90a8;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.legal-brand span {
  color: var(--accent);
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-lang-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.legal-lang-wrap select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.legal-main h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.35;
}

.policy-intro {
  color: var(--text-sub);
  margin: 0 0 24px;
}

.policy-sections {
  margin: 0;
  padding-left: 1.35em;
}

.policy-sections li {
  margin-bottom: 1.25em;
}

.policy-sections strong {
  display: inline;
  color: var(--text);
}

.policy-sections span {
  color: var(--text-sub);
}

.legal-status {
  color: var(--text-sub);
}

.legal-error {
  color: #f87171;
}

html[dir='rtl'] .policy-sections {
  padding-left: 0;
  padding-right: 1.35em;
}
