:root {
  color-scheme: dark;
  --background: #020617;
  --background-raised: #0f172a;
  --surface: #111827;
  --divider: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --blue: #3b82f6;
  --coral: #ff8a6b;
  --green: #4ade80;
  --max-page: 980px;
  --gutter: 20px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.58) 42%, #0b1324 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.legal-main,
.site-footer {
  width: min(calc(100% - var(--gutter) * 2), var(--max-page));
  margin: 0 auto;
}

.site-header {
  padding: 18px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--divider);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-header a,
.site-footer a {
  transition: color 160ms ease;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.legal-main {
  padding: 56px 0 66px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 44px;
  line-height: 1.04;
  font-weight: 800;
}

.lede {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 32px;
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.legal-meta p {
  margin-bottom: 0;
}

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

.legal-section h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 780;
}

.legal-section h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 720;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p {
  margin-bottom: 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0;
  padding-left: 21px;
}

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

.legal-grid {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.74);
}

.info-card p {
  margin-bottom: 0;
}

.notice {
  padding: 18px;
  border: 1px solid rgba(74, 222, 128, 0.34);
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.08);
}

.notice strong {
  color: var(--green);
}

.contact-link {
  color: var(--text);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.7);
  text-underline-offset: 4px;
}

.site-footer {
  padding: 24px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--divider);
}

.footer-brand {
  width: fit-content;
  font-size: 18px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
}

@media (min-width: 680px) {
  :root {
    --gutter: 30px;
  }

  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  h1 {
    font-size: 36px;
  }
}
