:root {
  --bg: #050505;
  --panel: #101010;
  --text: #f5f5f5;
  --muted: #a7a7ad;
  --line: #292929;
  --accent: #f80f35;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { display: block; width: 102px; height: auto; }

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.home-link:hover,
.home-link:focus-visible { border-color: #777; background: #171717; }

.legal-layout {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 110px;
  display: grid;
  grid-template-columns: 230px minmax(0, 900px);
  gap: clamp(56px, 8vw, 120px);
  justify-content: center;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 112px;
}

.legal-nav h2 {
  margin: 0 0 22px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.legal-nav a {
  display: block;
  width: fit-content;
  margin: 14px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] { color: #fff; }

.legal-nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.legal-content { min-width: 0; }

.legal-content h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
}

.updated {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.intro {
  margin: 26px 0 58px;
  color: #d1d1d5;
  font-size: 17px;
  line-height: 1.8;
}

.legal-section { margin-top: 58px; scroll-margin-top: 110px; }

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.legal-section h3 {
  margin: 34px 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: #c4c4c9;
  font-size: 16px;
  line-height: 1.8;
}

.legal-section p { margin: 12px 0; }
.legal-section ul { margin: 12px 0; padding-left: 24px; }
.legal-section strong { color: #fff; }

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  text-align: left;
}

th,
td {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.65;
}

th:last-child,
td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { color: #fff; background: #111; }
td { color: #bcbcc1; }

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #343434;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: #d1d1d5;
  background: var(--panel);
  font-size: 15px;
  line-height: 1.7;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: #888;
  text-align: center;
  font-size: 13px;
}

.page-footer a { color: #ccc; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .topbar-inner,
  .legal-layout { width: min(100% - 36px, 680px); }
  .topbar-inner { min-height: 68px; }
  .brand img { width: 88px; }
  .legal-layout { grid-template-columns: 1fr; gap: 46px; padding: 48px 0 84px; }
  .legal-nav { position: static; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
  .legal-nav h2 { font-size: 18px; }
  .legal-nav-links { display: flex; gap: 24px; }
  .legal-nav a { margin: 0; }
  .intro { margin-bottom: 46px; }
  .legal-section { margin-top: 48px; }
}
