:root {
  --ink: #17191f;
  --muted: #60646f;
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --line: #d9d4ca;
  --accent: #5f35e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

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

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible { color: var(--ink); }

.legal-main {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 88px) 0 84px;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-summary {
  margin: 36px 0 46px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  font-size: 17px;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 15px;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.legal-section p,
.legal-section ul { margin: 0 0 16px; }

.legal-section ul { padding-left: 22px; }

.legal-section li + li { margin-top: 8px; }

.legal-data {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.legal-data dt,
.legal-data dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.legal-data dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.legal-data dt:last-of-type,
.legal-data dd:last-of-type { border-bottom: 0; }

.legal-data address { font-style: normal; }

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.legal-table th {
  background: #eeeae1;
  font-size: 13px;
}

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

.legal-note {
  padding: 18px 20px;
  border-radius: 12px;
  background: #ece7fb;
}

.legal-page-footer {
  padding: 30px 20px;
  background: #17191f;
  color: #d8dce4;
  text-align: center;
  font-size: 14px;
}

.legal-page-footer p { margin: 0; }

@media (max-width: 600px) {
  .legal-header,
  .legal-main { width: min(100% - 28px, 820px); }

  .legal-header { padding: 17px 0; }

  .legal-main { padding-top: 44px; }

  .legal-data { grid-template-columns: 1fr; }

  .legal-data dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .legal-data dd { padding-top: 3px; }
}
