:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05070d;
  color: #c7cedb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(18, 37, 61, 0.5), transparent 28rem),
    #05070d;
  line-height: 1.72;
}

a {
  color: #58d8ff;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a8ecff;
}

.privacy-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - 860px) / 2));
  border-bottom: 1px solid #202836;
  background: rgba(5, 7, 13, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 50%;
}

.back-link {
  color: #d7deea;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.privacy-shell {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 52px 0 72px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: #697589;
  font-size: 0.85rem;
}

.lang-switch a {
  color: #e1e7ef;
  font-weight: 700;
}

h1 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 44px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #263041;
  color: #f3f6fa;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin: 24px 0 8px;
  color: #dce4ef;
  font-size: 1rem;
}

p,
li {
  font-size: 0.97rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.38rem;
}

code {
  padding: 0.12rem 0.36rem;
  border: 1px solid #28364a;
  border-radius: 4px;
  background: #0c1420;
  color: #e3eaf5;
  font-size: 0.85rem;
}

.updated {
  margin: 0 0 32px;
  color: #8490a3;
  font-size: 0.86rem;
}

.english-title {
  margin-top: 88px;
  padding-top: 42px;
  border-top: 1px solid #263041;
}

table {
  display: block;
  width: 100%;
  margin: 14px 0 20px;
  overflow-x: auto;
  border: 1px solid #253044;
  border-radius: 6px;
  border-collapse: collapse;
  background: #09101a;
  font-size: 0.88rem;
}

tbody {
  display: table;
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #202b3c;
  text-align: left;
  vertical-align: top;
}

th {
  background: #0e1928;
  color: #eef3f9;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #274f69;
  border-left: 3px solid #47d2ff;
  border-radius: 6px;
  background: #0a1722;
  color: #c8d6e5;
  font-size: 0.92rem;
}

.footer {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid #202836;
  color: #778296;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 560px) {
  .privacy-header {
    min-height: 62px;
    padding-inline: 16px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .privacy-shell {
    width: min(100% - 32px, 820px);
    padding-top: 38px;
  }

  .back-link {
    font-size: 0.8rem;
  }

  h2 {
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
