:root {
  color-scheme: light;
  --paper: #f5f3ef;
  --ink: #333638;
  --muted: #6d7274;
  --line: #dedbd5;
  --accent: #a6531b;
  --link: #714d79;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }

.legal-topbar {
  background: linear-gradient(108deg, #393b3d 0%, #55585a 100%);
  color: #fff;
}

.legal-topbar-inner {
  width: min(880px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand {
  color: #fff;
  text-decoration: none;
  font-family: "Avenir Next", Montserrat, Futura, "Century Gothic", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-back {
  color: rgba(255,255,255,.88);
  font-size: .82rem;
}

.legal-main {
  width: min(880px, calc(100% - 32px));
  margin: 34px auto 48px;
}

.legal-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(47,49,51,.1);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(38,40,42,.08);
}

.legal-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.18;
}

.legal-date {
  margin: 9px 0 28px;
  color: var(--muted);
  font-size: .84rem;
}

h2 {
  margin: 30px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}

h2:first-of-type {
  margin-top: 0;
}

p, li { font-size: .94rem; }

ul { padding-left: 1.3rem; }

.notice {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: #5b6062;
  background: #faf6f1;
  font-size: .88rem;
}

.legal-footer {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.legal-footer a + a::before {
  content: " · ";
  color: #9b9b96;
}

@media (max-width: 560px) {
  .legal-topbar-inner {
    min-height: 64px;
  }
  .legal-back { font-size: .75rem; }
  .legal-card { border-radius: 18px; }
}


.data-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.45;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  border-top: 0;
  color: #55595b;
  background: #f7f5f1;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.data-table td:first-child {
  color: #3f4345;
  font-weight: 700;
}

.data-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: .86rem;
}


.embed-code {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #35393b;
  background: #f7f5f1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  line-height: 1.55;
  white-space: pre;
}

.integration-points {
  margin: 12px 0 0;
}

.integration-points li + li {
  margin-top: 5px;
}
