.agreement-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.agreement-titlebar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  -webkit-app-region: drag;
  flex-shrink: 0;

  span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
  }
}

.agreement-content {
  flex: 1;
  padding: 32px 48px;
  overflow-y: auto;

  h2 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);

    &:not(:first-child) {
      margin-top: 40px;
    }
  }

  h3 {
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
  }

  p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
  }

  .agreement-footer-text {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
  }

  &::-webkit-scrollbar {
    width: 8px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;

    &:hover {
      background: var(--text-tertiary);
    }
  }
}
