:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #191a1c;
  --text: #33363b;
  --muted: #71757d;
  --line: rgba(25, 26, 28, 0.14);
  --accent: #9f244d;
  --accent-soft: #f7e6ed;
  --max: 920px;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #171a20;
  --ink: #f5f2ec;
  --text: #d7d2ca;
  --muted: #a9a39a;
  --line: rgba(228, 220, 208, 0.16);
  --accent: #ff8fb4;
  --accent-soft: rgba(255, 143, 180, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

:root[data-theme="night"] body {
  background: var(--bg);
}

:root[data-theme="night"] .legal-document {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

a {
  color: inherit;
}

.legal-header,
.legal-footer,
.legal-document {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.legal-header {
  padding: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}

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

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

.legal-document {
  margin-top: 24px;
  margin-bottom: 46px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-title,
h2,
p,
ul {
  letter-spacing: 0;
}

.legal-title,
h2 {
  margin: 0;
}

.legal-title {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h2 {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

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

p {
  margin: 14px 0 0;
}

.legal-lead {
  max-width: 760px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.62;
}

ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--accent);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}

.legal-footer {
  padding: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 620px) {
  .legal-header,
  .legal-footer,
  .legal-document {
    width: min(var(--max), calc(100% - 22px));
  }

  .legal-header {
    padding-top: max(18px, env(safe-area-inset-top));
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .legal-nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .legal-nav a {
    min-height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    text-decoration: none;
  }

  .legal-document {
    margin-top: 12px;
    padding: 22px 18px;
    border-radius: 6px;
  }

  .legal-title {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.06;
  }

  h2 {
    margin-top: 28px;
    padding-top: 20px;
    font-size: 20px;
  }

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

:root[data-theme="night"] .legal-document {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

:root[data-theme="night"] .legal-nav a {
  background: var(--surface);
}
