:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #60646c;
  --line: #d7d9dd;
  --paper: #ffffff;
  --soft: #f3f4f6;
  --red: #c8171d;
  --red-dark: #961116;
  --green: #137a4a;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.72;
}

a { color: var(--red-dark); }

.app-legal-wrap {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.app-legal-header {
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: #111;
  border-bottom: 3px solid var(--red);
}

.app-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.app-legal-brand img {
  width: 130px;
  height: 38px;
  object-fit: contain;
}

.app-legal-language {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.app-legal-nav {
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.app-legal-nav a {
  min-height: 46px;
  padding: 11px 14px 10px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  border-bottom: 3px solid transparent;
}

.app-legal-nav a[aria-current="page"] {
  color: var(--red-dark);
  border-bottom-color: var(--red);
}

.app-legal-title-band {
  padding: 52px 0 40px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.app-legal-eyebrow {
  margin: 0 0 8px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2 { letter-spacing: 0; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 54px;
  line-height: 1.14;
}

.app-legal-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: #42454b;
  font-size: 19px;
}

.app-legal-status {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 14px;
}

.app-legal-status span:first-child {
  color: var(--green);
  font-weight: 800;
}

.app-legal-content { padding: 22px 0 64px; }

.app-legal-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.app-legal-section:last-child { border-bottom: 0; }

.app-legal-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
}

.app-legal-section p { margin: 10px 0; }

.app-legal-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.app-legal-section li { margin: 7px 0; }

.app-legal-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.app-legal-links a {
  font-weight: 750;
  text-underline-offset: 3px;
}

.app-legal-footer {
  padding: 24px 0;
  color: #d6d6d6;
  background: #111;
}

.app-legal-footer .app-legal-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-legal-footer p { margin: 0; }
.app-legal-footer a { color: #fff; }

@media (max-width: 640px) {
  .app-legal-wrap { width: min(100% - 28px, 920px); }
  .app-legal-header { min-height: 60px; padding-inline: 14px; }
  .app-legal-brand { gap: 10px; }
  .app-legal-brand img { width: 102px; height: 30px; }
  .app-legal-brand span { font-size: 13px; }
  .app-legal-nav {
    padding-inline: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }
  .app-legal-nav a {
    min-height: 52px;
    padding: 8px 6px 7px;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    border-right: 1px solid var(--line);
  }
  .app-legal-nav a:nth-child(3n) { border-right: 0; }
  .app-legal-title-band { padding: 36px 0 30px; }
  h1 { font-size: 34px; }
  .app-legal-intro { font-size: 17px; }
  .app-legal-section { padding: 24px 0; }
  .app-legal-section h2 { font-size: 21px; }
  .app-legal-footer .app-legal-wrap { align-items: flex-start; flex-direction: column; gap: 6px; }
}
