:root {
  color-scheme: light;
  --cream: #f8f5ef;
  --paper: #fffdf9;
  --ink: #171513;
  --muted: #625e59;
  --soft-muted: #8a837c;
  --line: #e1dcd4;
  --accent: #e85002;
  --accent-soft: #fff3eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: 72px;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-name small {
  margin-left: 5px;
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.header-spacer {
  flex: 1;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--accent);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.lang-toggle:hover {
  background: var(--ink);
  color: #fff;
}

.legal-shell,
.legal-footer {
  width: min(880px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.legal-shell {
  margin-top: 0;
}

.legal-card {
  background: transparent;
}

.legal-hero {
  padding: clamp(56px, 8vw, 78px) 0 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 740;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.meta {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--soft-muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 34px 0 72px;
}

.legal-content a {
  color: var(--accent);
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--ink);
}

.legal-lead {
  margin-top: 0;
}

h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

h3 {
  margin: 32px 0 10px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

p,
ul {
  margin: 14px 0;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

ul {
  padding-left: 24px;
}

li + li {
  margin-top: 6px;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

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

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 14px;
}

th,
td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

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

th {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

td {
  color: var(--muted);
}

.contact-box {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f3;
}

.contact-box strong {
  color: var(--ink);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 22px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 12px;
  line-height: 1.6;
}

.legal-footer a {
  text-decoration: none;
}

@media (max-width: 700px) {
  .site-header__inner,
  .legal-shell,
  .legal-footer {
    width: min(calc(100% - 32px), 560px);
  }

  .site-header__inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand-name small {
    display: none;
  }

  .back-link {
    font-size: 12px;
  }

  .legal-hero {
    padding: 46px 0 28px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    letter-spacing: -0.055em;
  }

  .meta {
    margin-top: 14px;
    font-size: 12px;
  }

  .legal-content {
    padding: 28px 0 56px;
  }

  h2 {
    margin-top: 38px;
    font-size: 21px;
  }

  h3 {
    margin-top: 26px;
    font-size: 17px;
  }

  p,
  li {
    font-size: 15px;
    line-height: 1.9;
  }

  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 40px;
  }
}
