:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --quiet: #8e8e93;
  --accent: #0a66c2;
  --accent-soft: rgba(10, 102, 194, 0.10);
  --border: rgba(60, 60, 67, 0.14);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050506;
    --surface: rgba(28, 28, 30, 0.88);
    --surface-strong: #1c1c1e;
    --text: #f5f5f7;
    --muted: #aeaeb2;
    --quiet: #8e8e93;
    --accent: #64a8ff;
    --accent-soft: rgba(100, 168, 255, 0.16);
    --border: rgba(235, 235, 245, 0.14);
    --shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  }
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  word-break: break-word;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.site-topbar .brand-mark {
  margin-bottom: 0;
  min-width: 0;
}
.cross-nav-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.cross-nav-link:hover {
  background: var(--accent-soft);
  text-decoration: none;
}
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  .app-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
}
h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.65rem, 6.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 740;
}
.subtitle {
  max-width: 42rem;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.updated-card {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.updated {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
}
.policy-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.language-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lang-select-wrap {
  display: block;
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238e8e93' d='M1.4.6 6 5.2 10.6.6 12 2l-6 6-6-6z'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.2;
}
[dir="rtl"] .lang-select {
  padding: 8px 12px 8px 34px;
  background-position: left 12px center;
}
nav.lang.lang-nav-desktop {
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding-right: 2px;
}
.lang-link {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 560;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
[dir="rtl"] .lang-link { text-align: right; }
.lang-link:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}
.lang-link[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}
.policy-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
article {
  padding: 20px 16px 24px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.policy-section {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border);
}
.policy-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
article h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}
article p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
}
article p:last-child { margin-bottom: 0; }
article ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
article li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}
[dir="rtl"] article li {
  padding-right: 1.15rem;
  padding-left: 0;
}
article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
}
[dir="rtl"] article li::before {
  right: 0;
  left: auto;
}
footer {
  margin-top: 24px;
  text-align: center;
  color: var(--quiet);
  font-size: 0.8rem;
}
@media (min-width: 768px) {
  body { font-size: 17px; line-height: 1.62; }
  .wrap {
    padding: 40px 28px 52px;
  }
  .site-topbar {
    margin-bottom: 20px;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
  }
  h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
  }
  .subtitle { font-size: 1.06rem; }
  .updated-card {
    width: auto;
    min-width: 220px;
  }
  .trust-row { gap: 10px; margin-top: 22px; }
  .pill {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.86rem;
  }
  .policy-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }
  .language-card {
    position: sticky;
    top: 20px;
    padding: 18px;
    border-radius: 24px;
  }
  .lang-select-wrap { display: none; }
  nav.lang.lang-nav-desktop {
    display: grid;
  }
  .policy-card { border-radius: 24px; }
  article {
    padding: 32px 36px 36px;
  }
  article h2 { font-size: 1.28rem; }
  .policy-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  footer { margin-top: 30px; }
}
@media (min-width: 1024px) {
  .wrap { padding: 48px 28px 56px; }
  h1 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); }
}
